compare instance to basestring instead of (str, unicode)

This commit is contained in:
Christophe Benz 2010-08-17 19:33:06 +02:00
commit 8afff42465
9 changed files with 13 additions and 13 deletions

View file

@ -242,7 +242,7 @@ class AuMBrowser(BaseBrowser):
@pageaccess
def get_profile(self, link):
if isinstance(link, (str,unicode)) and link.startswith('/'):
if isinstance(link, basestring) and link.startswith('/'):
link = link[1:]
self.location('/%s' % link)
return self.page