Skip to content

Commit 5884f4e

Browse files
author
MarcoGorelli
committed
better naming
1 parent f38a7cd commit 5884f4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/tools/datetimes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ def _array_strptime_with_fallback(
504504
# Indicates to the caller to fallback to objects_to_datetime64ns
505505
return None
506506
else:
507-
if any([i is not None for i in timezones]):
507+
if any(tz is not None for tz in timezones):
508508
return _return_parsed_timezone_results(result, timezones, utc, name)
509509

510510
return _box_as_indexlike(result, utc=utc, name=name)

0 commit comments

Comments
 (0)