File tree Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -37,23 +37,23 @@ def reset_tzpath(to=None):
37
37
def _parse_python_tzpath (env_var ):
38
38
if not env_var :
39
39
return ()
40
- else :
41
- raw_tzpath = env_var .split (os .pathsep )
42
- new_tzpath = tuple (filter (os .path .isabs , raw_tzpath ))
43
40
44
- # If anything has been filtered out, we will warn about it
45
- if len (new_tzpath ) != len (raw_tzpath ):
46
- import warnings
41
+ raw_tzpath = env_var .split (os .pathsep )
42
+ new_tzpath = tuple (filter (os .path .isabs , raw_tzpath ))
47
43
48
- msg = _get_invalid_paths_message (raw_tzpath )
44
+ # If anything has been filtered out, we will warn about it
45
+ if len (new_tzpath ) != len (raw_tzpath ):
46
+ import warnings
49
47
50
- warnings .warn (
51
- "Invalid paths specified in PYTHONTZPATH environment variable."
52
- + msg ,
53
- InvalidTZPathWarning ,
54
- )
48
+ msg = _get_invalid_paths_message (raw_tzpath )
49
+
50
+ warnings .warn (
51
+ "Invalid paths specified in PYTHONTZPATH environment variable."
52
+ + msg ,
53
+ InvalidTZPathWarning ,
54
+ )
55
55
56
- return new_tzpath
56
+ return new_tzpath
57
57
58
58
59
59
def _get_invalid_paths_message (tzpaths ):
You can’t perform that action at this time.
0 commit comments