Restore support for Python 2.6
This commit is contained in:
parent
eb0324cb68
commit
e622312a79
2 changed files with 5 additions and 1 deletions
|
|
@ -7,6 +7,10 @@ try:
|
|||
from urlparse import urlparse as parse_url
|
||||
except ImportError:
|
||||
from urllib.parse import urlparse as parse_url
|
||||
try:
|
||||
memoryview = memoryview
|
||||
except NameError:
|
||||
memoryview = buffer
|
||||
|
||||
|
||||
def get_character(x, index):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue