mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-06-10 08:03:08 +03:00
Removed pre-Python 2.3 workaround
This commit is contained in:
parent
55ec522727
commit
dbd3415709
|
@ -267,15 +267,8 @@ else:
|
||||||
|
|
||||||
#[PL] These workarounds were inspired from the Path module
|
#[PL] These workarounds were inspired from the Path module
|
||||||
# (see http://www.jorendorff.com/articles/python/path/)
|
# (see http://www.jorendorff.com/articles/python/path/)
|
||||||
#TODO: test with old Python versions
|
|
||||||
|
|
||||||
# Pre-2.3 workaround for basestring.
|
|
||||||
try:
|
try:
|
||||||
basestring
|
basestring
|
||||||
except NameError:
|
|
||||||
try:
|
|
||||||
# is Unicode supported (Python >2.0 or >1.6 ?)
|
|
||||||
basestring = (str, unicode)
|
|
||||||
except NameError:
|
except NameError:
|
||||||
basestring = str
|
basestring = str
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user