Fix pylint warnings for name redefinition.

This commit is contained in:
Rafael Guterres Jeffman
2021-04-29 18:54:33 -03:00
parent afb64419d5
commit e7b9e97a84
3 changed files with 7 additions and 7 deletions

View File

@@ -271,9 +271,9 @@ else:
'%Y-%m-%d %H:%MZ', # non-ISO 8601, minute precision
]
for date_format in accepted_date_formats:
for _date_format in accepted_date_formats:
try:
return datetime.strptime(value, date_format)
return datetime.strptime(value, _date_format)
except ValueError:
pass
raise ValueError("Invalid date '%s'" % value)