Skip to content

Commit 65bce9c

Browse files
committed
Removed Python 2 support
1 parent bb34530 commit 65bce9c

4 files changed

Lines changed: 1 addition & 8 deletions

File tree

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
# Using Python for the project
55
language: python
66
python:
7-
- "2.7"
87
- "3.4"
98
- "3.5"
109
# Python 3.6 is set to test and deploy the docs in the configuration matrix

README.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ Prerequisites
5050

5151
The project has been tested in the following versions of the interpreter:
5252

53-
- Python 2.7
5453
- Python 3.4
5554
- Python 3.5
5655
- Python 3.6

dice_notation/dice.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@
2020
__author__ = 'Benardo Martínez Garrido'
2121
__license__ = 'MIT'
2222

23-
if sys.version_info[0] >= 3:
24-
xrange = range
25-
2623

2724
class Rollable(object, metaclass=ABCMeta):
2825
"""
@@ -131,7 +128,7 @@ def roll(self):
131128
elif self.quantity is None or self.sides is None:
132129
result = None
133130
elif self.quantity > 0 and self.sides > 0:
134-
for x in xrange(self.quantity):
131+
for x in range(self.quantity):
135132
result += randint(1, self.sides)
136133
else:
137134
result = None

setup.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,6 @@ def run_tests(self):
7474
'Intended Audience :: Developers',
7575
'License :: OSI Approved :: MIT License',
7676
'Programming Language :: Python',
77-
'Programming Language :: Python :: 2',
78-
'Programming Language :: Python :: 2.7',
7977
'Programming Language :: Python :: 3',
8078
'Programming Language :: Python :: 3.3',
8179
'Programming Language :: Python :: 3.4',

0 commit comments

Comments
 (0)