mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 01:46:18 +03:00
Merge pull request #1223 from radarhere/olefileio
Removed pre-Python 2.3 workaround from OleFileIO
This commit is contained in:
commit
8f0dca2333
|
@ -267,15 +267,8 @@ else:
|
|||
|
||||
#[PL] These workarounds were inspired from the Path module
|
||||
# (see http://www.jorendorff.com/articles/python/path/)
|
||||
#TODO: test with old Python versions
|
||||
|
||||
# Pre-2.3 workaround for basestring.
|
||||
try:
|
||||
basestring
|
||||
except NameError:
|
||||
try:
|
||||
# is Unicode supported (Python >2.0 or >1.6 ?)
|
||||
basestring = (str, unicode)
|
||||
except NameError:
|
||||
basestring = str
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user