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
|
|
@ -51,8 +51,8 @@ class Cragr(BaseBrowser):
|
|||
return self.page and self.page.is_logged() or self.is_logging
|
||||
|
||||
def login(self):
|
||||
assert isinstance(self.username, (str,unicode))
|
||||
assert isinstance(self.password, (str,unicode))
|
||||
assert isinstance(self.username, basestring)
|
||||
assert isinstance(self.password, basestring)
|
||||
|
||||
self.is_logging = True
|
||||
if not self.is_on_page(pages.LoginPage):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue