File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44# Using Python for the project
55language : python
66python :
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
Original file line number Diff line number Diff line change @@ -50,7 +50,6 @@ Prerequisites
5050
5151The 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
Original file line number Diff line number Diff line change 2020__author__ = 'Benardo Martínez Garrido'
2121__license__ = 'MIT'
2222
23- if sys .version_info [0 ] >= 3 :
24- xrange = range
25-
2623
2724class 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
Original file line number Diff line number Diff 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' ,
You can’t perform that action at this time.
0 commit comments