File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments