Skip to content

Commit c3cb04f

Browse files
author
Josh Hoyt
committed
[project @ Added basestring Python 2.2 compatibility]
1 parent fc1333b commit c3cb04f

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎openid/sreg.py‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@
3737

3838
from openid.extension import Extension
3939

40+
try:
41+
basestring
42+
except NameError:
43+
# For Python 2.2
44+
basestring = (str, unicode)
45+
4046
__all__ = [
4147
'SRegRequest',
4248
'SRegResponse',

0 commit comments

Comments
 (0)