Skip to content

Commit d2a652c

Browse files
author
Josh Hoyt
committed
[project @ Python 2.2 compatibility - no basestring class]
1 parent f713961 commit d2a652c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎openid/oidutil.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def quoteMinimal(s):
5757
return str(''.join(res))
5858

5959
def normalizeUrl(url):
60-
if not isinstance(url, basestring):
60+
if not isinstance(url, (str, unicode)):
6161
return None
6262

6363
url = url.strip()

0 commit comments

Comments
 (0)