aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/algorithms/inputgen.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/inputgen.py
parentfix licensing notices (diff)
downloadsorting-algorithms-4967f628f78f7648b582a2ae705bd13aede16a76.tar.gz
sorting-algorithms-4967f628f78f7648b582a2ae705bd13aede16a76.zip
mostly Pylint fixes
Diffstat (limited to 'algorithms/inputgen.py')
-rw-r--r--algorithms/inputgen.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/algorithms/inputgen.py b/algorithms/inputgen.py
index aeb4f29..998f1d6 100644
--- a/algorithms/inputgen.py
+++ b/algorithms/inputgen.py
@@ -20,7 +20,7 @@ def _gen_input_from(xs):
def gen_input_for_sorting(n, case=InputKind.AVERAGE):
if n < 0:
- raise ValueError('input length must not be a negative number')
+ raise ValueError('input length cannot be less than zero')
if case is InputKind.BEST:
return _gen_input_from(range(n))
elif case is InputKind.AVERAGE: