We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 254bdac commit f6a1c4dCopy full SHA for f6a1c4d
Lib/zoneinfo/_zoneinfo.py
@@ -75,12 +75,12 @@ def _new_instance(cls, key):
75
return obj
76
77
@classmethod
78
- def from_file(cls, fobj, /, key=None):
+ def from_file(cls, file_obj, /, key=None):
79
obj = super().__new__(cls)
80
obj._key = key
81
obj._file_path = None
82
- obj._load_file(fobj)
83
- obj._file_repr = repr(fobj)
+ obj._load_file(file_obj)
+ obj._file_repr = repr(file_obj)
84
85
# Disable pickling for objects created from files
86
obj.__reduce__ = obj._file_reduce
0 commit comments