Revision: 5035 Author: rotem Date: 2008-02-15 20:13:03 +0000 (Fri, 15 Feb 2008)
Log Message: ----------- Fix.
Modified Paths: -------------- trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2008-02-15 20:09:23 UTC (rev 5034) +++ trunk/pywikipedia/wikipedia.py 2008-02-15 20:13:03 UTC (rev 5035) @@ -303,7 +303,7 @@
if site == None: site = getSite() - elif type(site) is string or type(site) is unicode: + elif type(site) is str or type(site) is unicode: site = getSite(site)
self._site = site @@ -2883,7 +2883,7 @@ }
# if we got a string, compile it as a regular expression - if type(old) is string or type(old) is unicode: + if type(old) is str or type(old) is unicode: if caseInsensitive: old = re.compile(old, re.IGNORECASE | re.UNICODE) else: