compare instance to basestring instead of (str, unicode)
This commit is contained in:
parent
3ced2bee38
commit
8afff42465
9 changed files with 13 additions and 13 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue