Skip to content

Commit f6a1c4d

Browse files
committed
Unify ZoneInfo.from_file signatures
1 parent 254bdac commit f6a1c4d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Lib/zoneinfo/_zoneinfo.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,12 @@ def _new_instance(cls, key):
7575
return obj
7676

7777
@classmethod
78-
def from_file(cls, fobj, /, key=None):
78+
def from_file(cls, file_obj, /, key=None):
7979
obj = super().__new__(cls)
8080
obj._key = key
8181
obj._file_path = None
82-
obj._load_file(fobj)
83-
obj._file_repr = repr(fobj)
82+
obj._load_file(file_obj)
83+
obj._file_repr = repr(file_obj)
8484

8585
# Disable pickling for objects created from files
8686
obj.__reduce__ = obj._file_reduce

0 commit comments

Comments
 (0)