remove python 2, deprecated af
This commit is contained in:
parent
0538c9f984
commit
ffa11a6a87
1 changed files with 1 additions and 4 deletions
|
@ -30,10 +30,7 @@ class User(db.Model):
|
|||
return False
|
||||
|
||||
def get_id(self):
|
||||
try:
|
||||
return unicode(self.id) # python 2
|
||||
except NameError:
|
||||
return str(self.id) # python 3
|
||||
return str(self.id)
|
||||
|
||||
def __repr__(self):
|
||||
return '%s' % self.username
|
||||
|
|
Loading…
Reference in a new issue