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
|
return False
|
||||||
|
|
||||||
def get_id(self):
|
def get_id(self):
|
||||||
try:
|
return str(self.id)
|
||||||
return unicode(self.id) # python 2
|
|
||||||
except NameError:
|
|
||||||
return str(self.id) # python 3
|
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return '%s' % self.username
|
return '%s' % self.username
|
||||||
|
|
Loading…
Reference in a new issue