Skip to content

Commit

Permalink
Refine code
Browse files Browse the repository at this point in the history
  • Loading branch information
jondy committed Oct 19, 2024
1 parent de32647 commit 09afef5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cli/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -729,9 +729,9 @@ def main_entry(argv):
parser = main_parser()
args = parser.parse_args(argv)

major, minor = sys.version_info[:2]
if not (major == 3 and minor > 6 and minor < 13):
raise CliError('this Python version is not supported')
x, y = sys.version_info[:2]
if not (x == 3 and y > 6 and y < 13):
raise CliError('Python %s.%s is not supported' % (x, y))

ctx = Context(*get_home_paths(args))

Expand Down

0 comments on commit 09afef5

Please sign in to comment.