mirror of
https://gitlab.com/SIGBUS/nyaa.git
synced 2024-12-22 09:00:00 +00:00
fix pep8 error message
This commit is contained in:
parent
89590c91bb
commit
2e6e924247
|
@ -569,7 +569,7 @@ class User(db.Model):
|
|||
|
||||
@classmethod
|
||||
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):
|
||||
return None
|
||||
|
||||
|
|
Loading…
Reference in a new issue