mirror of
https://gitlab.com/SIGBUS/nyaa.git
synced 2024-12-22 13:49:59 +00:00
fix pep8 error message
This commit is contained in:
parent
89590c91bb
commit
2e6e924247
|
@ -569,7 +569,7 @@ class User(db.Model):
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def by_username(cls, username):
|
def by_username(cls, username):
|
||||||
isascii = lambda s: len(s) == len(s.encode())
|
def isascii(s): return len(s) == len(s.encode())
|
||||||
if not isascii(username):
|
if not isascii(username):
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue