Skip to content

Commit 940bca0

Browse files
python: drop Python 2 support
Python 2.7 reached the end of its life on January 1st, 2020 [1]. Since it would be a waste to ignore several Python 3.x features in master discovery implementation, we decided to drop Python 2 support here. Python 2 workaround cleanup activities are expected to be solved as part of #212 solution. 1. https://www.python.org/doc/sunset-python-2/ Part of #196
1 parent 6aa89a6 commit 940bca0

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Diff for: appveyor.yml

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
environment:
22
matrix:
3-
- PYTHON: "C:\\Python27"
4-
- PYTHON: "C:\\Python27-x64"
53
- PYTHON: "C:\\Python34"
64
- PYTHON: "C:\\Python34-x64"
75
- PYTHON: "C:\\Python35"

Diff for: tarantool/__init__.py

+4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# -*- coding: utf-8 -*-
22
# pylint: disable=C0301,W0105,W0401,W0614
33

4+
import sys
5+
6+
assert sys.version_info.major > 2, 'Connector supports Python 3 only'
7+
48
from tarantool.connection import Connection
59
from tarantool.mesh_connection import MeshConnection
610
from tarantool.const import (

0 commit comments

Comments
 (0)