fix long issue in python3

This commit is contained in:
wing328
2016-07-07 22:17:27 +08:00
parent 41e8273cb8
commit 89befeb45b
3 changed files with 22 additions and 6 deletions

View File

@@ -46,6 +46,14 @@ except ImportError:
# for python2
from urllib import quote
# special handling of `long` (python2 only)
try:
# Python 2
long
except NameError:
# Python 3
long = int
from .configuration import Configuration