diff --git a/docs/installation_win.rst b/docs/installation_win.rst --- a/docs/installation_win.rst +++ b/docs/installation_win.rst @@ -17,11 +17,11 @@ To install on an older version of Window Step 1 -- Install Python ^^^^^^^^^^^^^^^^^^^^^^^^ -Install Python 2.x.y (x = 6 or 7). Latest version is recommended. If you need another version, they can run side by side. +Install Python 2.7.x. Latest version is recommended. If you need another version, they can run side by side. .. warning:: Python 3.x is not supported. -- Download Python 2.x.y from http://www.python.org/download/ +- Download Python 2.7.x from http://www.python.org/download/ - Choose and click on the version - Click on "Windows X86-64 Installer" for x64 or "Windows x86 MSI installer" for Win32. - Disable UAC or run the installer with admin privileges. If you chose to disable UAC, do not forget to reboot afterwards. diff --git a/docs/installation_win_old.rst b/docs/installation_win_old.rst --- a/docs/installation_win_old.rst +++ b/docs/installation_win_old.rst @@ -60,8 +60,8 @@ choose "Visual C++ 2008 Express" when in Step 2 -- Install Python ^^^^^^^^^^^^^^^^^^^^^^^^ -Install Python 2.x.y (x = 6 or 7) x86 version (32-bit). DO NOT USE A 3.x version. -Download Python 2.x.y from: +Install Python 2.7.x x86 version (32-bit). DO NOT USE A 3.x version. +Download Python 2.7.x from: http://www.python.org/download/ Choose "Windows Installer" (32-bit version) not "Windows X86-64 diff --git a/kallithea/lib/compat.py b/kallithea/lib/compat.py --- a/kallithea/lib/compat.py +++ b/kallithea/lib/compat.py @@ -41,15 +41,6 @@ formatted_json = functools.partial(json. #============================================================================== -# unittest -#============================================================================== -if sys.version_info >= (2, 7): - import unittest -else: - import unittest2 as unittest - - -#============================================================================== # OrderedSet #============================================================================== from sqlalchemy.util import OrderedSet diff --git a/kallithea/lib/vcs/utils/compat.py b/kallithea/lib/vcs/utils/compat.py deleted file mode 100644 --- a/kallithea/lib/vcs/utils/compat.py +++ /dev/null @@ -1,14 +0,0 @@ -""" -Various utilities to work with Python < 2.7. - -Those utilities may be deleted once ``vcs`` stops support for older Python -versions. -""" - -import sys -import array - -if sys.version_info >= (2, 7): - unittest = __import__('unittest') -else: - unittest = __import__('unittest2') diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -64,10 +64,6 @@ requirements = [ "Click >= 7.0, < 8", ] -if sys.version_info < (2, 7): - requirements.append("importlib == 1.0.1") - requirements.append("argparse") - if not is_windows: requirements.append("bcrypt >= 3.1.0, < 3.2")