This commit is contained in:
allegroai 2021-02-23 12:44:26 +02:00
parent 77d6ff6630
commit 50fccdab96

View File

@ -16,7 +16,7 @@ def parse(reqstr):
filename = getattr(reqstr, 'name', None)
try:
# Python 2.x compatibility
if not isinstance(reqstr, basestring):
if not isinstance(reqstr, basestring): # noqa
reqstr = reqstr.read()
except NameError:
# Python 3.x only