Skip to content

Commit

Permalink
Fix the code to abbreviate Python's version (#2618)
Browse files Browse the repository at this point in the history
This breaks for Python >= 3.10

Co-authored-by: Álvaro Mondéjar Rubio <[email protected]>
  • Loading branch information
oprypin and mondeja authored Oct 12, 2021
1 parent 8345850 commit 9262cc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mkdocs/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def callback(ctx, param, value):
click.option('--use-directory-urls/--no-directory-urls', is_flag=True, default=None, help=use_directory_urls_help)
])

PYTHON_VERSION = sys.version[:3]
PYTHON_VERSION = f"{sys.version_info.major}.{sys.version_info.minor}"

PKG_DIR = os.path.dirname(os.path.abspath(__file__))

Expand Down

0 comments on commit 9262cc5

Please sign in to comment.