Skip to content

Commit 54d2055

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 9343e83 commit 54d2055

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/testing.yml

-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ jobs:
2424
- '2.8'
2525
- '2.x-latest'
2626
python:
27-
- '2.7'
2827
- '3.5'
2928
- '3.6'
3029
- '3.7'
@@ -116,7 +115,6 @@ jobs:
116115
- '1.10'
117116
- '2.8'
118117
python:
119-
- '2.7'
120118
- '3.10'
121119

122120
steps:

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)