1
0
Fork 0
mirror of https://gitlab.com/SIGBUS/nyaa.git synced 2024-12-22 08:40:00 +00:00

fix pep8 error message

This commit is contained in:
nyaadev 2017-09-19 01:16:34 +02:00
parent 89590c91bb
commit 2e6e924247

View file

@ -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