Skip to content

Commit 2a1c81e

Browse files
a-detistecclauss
andauthored
Update python/jsbeautifier/cli/__init__.py
Co-authored-by: Christian Clauss <[email protected]>
1 parent ae73224 commit 2a1c81e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/jsbeautifier/cli/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def get_filepaths_from_params(filepath_params, replace):
146146
elif "*" in filepath_param or "?" in filepath_param:
147147
# handle globs
148148
# empty result is okay
149-
if sys.version_info.major == 3 and sys.version_info.minor <= 4:
149+
if sys.version_info <= (3, 4):
150150
if "**" in filepath_param:
151151
raise Exception("Recursive globs not supported on Python <= 3.4.")
152152
filepaths.extend(glob.glob(filepath_param))

0 commit comments

Comments
 (0)