requirements: Upgrade pyflakes to 2.0.0.

We fix a few errors that only the new version finds.
This commit is contained in:
Vishnu Ks
2018-05-24 14:41:34 +00:00
committed by Tim Abbott
parent 1ef994c992
commit 54a002c2e2
13 changed files with 13 additions and 13 deletions

View File

@@ -205,7 +205,7 @@ def check_url(var_name: str, val: object) -> Optional[str]:
try:
validate(val)
return None
except ValidationError as err:
except ValidationError:
return _('%s is not a URL') % (var_name,)
def validate_field_data(field_data: ProfileFieldData) -> Optional[str]: