Skip to content

Commit b3d7c5d

Browse files
committed
Fix pyflakes
1 parent 9551929 commit b3d7c5d

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

src/onelogin/saml2/compat.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,16 @@
99

1010
from __future__ import absolute_import, print_function, with_statement
1111

12+
try:
13+
basestring
14+
except NameError:
15+
basestring = str
16+
17+
try:
18+
unicode
19+
except NameError:
20+
unicode = str
21+
1222

1323
if isinstance(b'', type('')): # py 2.x
1424
text_types = (basestring,) # noqa

0 commit comments

Comments
 (0)