aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/algorithms/params.py
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2017-01-12 12:57:57 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2017-01-12 12:57:57 +0300
commit4967f628f78f7648b582a2ae705bd13aede16a76 (patch)
tree0a15cf64738cd1a63d02e030fed749e24f682c5b /algorithms/params.py
parentfix licensing notices (diff)
downloadsorting-algorithms-4967f628f78f7648b582a2ae705bd13aede16a76.tar.gz
sorting-algorithms-4967f628f78f7648b582a2ae705bd13aede16a76.zip
mostly Pylint fixes
Diffstat (limited to 'algorithms/params.py')
-rw-r--r--algorithms/params.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/algorithms/params.py b/algorithms/params.py
index b7fc38e..bf87976 100644
--- a/algorithms/params.py
+++ b/algorithms/params.py
@@ -57,7 +57,7 @@ class AlgorithmParameters:
raise TypeError('must be an integral value')
val = int(val)
if val < 0:
- raise ValueError('must not be a negative number')
+ raise ValueError('must be non-negative')
if self.max_len is not None and self.max_len < val:
raise ValueError('must not be greater than the maximum length')
self._min_len = val
@@ -72,7 +72,7 @@ class AlgorithmParameters:
raise TypeError('must be an integral value')
val = int(val)
if val < 0:
- raise ValueError('must not be a negative number')
+ raise ValueError('must be non-negative')
if self.min_len is not None and self.min_len > val:
raise ValueError('must not be lesser than the minimum length')
self._max_len = val
@@ -87,7 +87,7 @@ class AlgorithmParameters:
raise TypeError('must be an integral value')
val = int(val)
if val < 1:
- raise ValueError('must be a positive number')
+ raise ValueError('must be positive')
self._iterations = val
def measure_running_time(self):