Skip to content

Commit d39b985

Browse files
author
atollk
committed
Fixed a typo in a variable name in fs._ftp_parse by completely removing the reference in that line.
1 parent 4a19bb8 commit d39b985

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

fs/_ftp_parse.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,10 @@ def _parse_time(t, formats):
8989
for frmt in formats:
9090
try:
9191
_t = time.strptime(t, frmt)
92-
if t:
93-
break
92+
break
9493
except ValueError:
9594
continue
96-
if not _t:
95+
else:
9796
return None
9897

9998
year = _t.tm_year if _t.tm_year != 1900 else time.localtime().tm_year

0 commit comments

Comments
 (0)