Skip to content

Commit dee7d4b

Browse files
committed
fix precommit
1 parent 0bcbf44 commit dee7d4b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Lib/test/test_zoneinfo/test_zoneinfo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1953,7 +1953,7 @@ def test_exclude_symlinks(self):
19531953
# Create regular timezone files
19541954
for key in expected:
19551955
self.touch_zone(key, td)
1956-
1956+
19571957
# Create a symlink named "localtime" pointing to one of the timezone files
19581958
os.symlink("America/New_York", os.path.join(td, "localtime"))
19591959

Lib/zoneinfo/_tzpath.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def _reset_tzpath(to=None, stacklevel=4):
99
if tzpaths is not None:
1010
if isinstance(tzpaths, (str, bytes)):
1111
raise TypeError(
12-
f"tzpaths must be a list or tuple, "
12+
"tzpaths must be a list or tuple, "
1313
+ f"not {type(tzpaths)}: {tzpaths!r}"
1414
)
1515

@@ -155,7 +155,7 @@ def valid_key(fpath):
155155

156156
for file in files:
157157
fpath = os.path.join(root, file)
158-
158+
159159
# Skip symlinks to avoid including files like 'localtime'
160160
if os.path.islink(fpath):
161161
continue

0 commit comments

Comments
 (0)