Fikset en bug:

input_str lette etter en variabel allowed_range, som ikke eksisterte.
Endret dette til input_range.
This commit is contained in:
Øyvind Almelid 2010-06-19 12:00:20 +00:00
parent 29f5c42513
commit ada800ba94
2 changed files with 1 additions and 1 deletions

BIN
data

Binary file not shown.

View File

@ -109,7 +109,7 @@ class Menu():
(length_range[1] and length > length_range[1])): (length_range[1] and length > length_range[1])):
if length_range[0] and length_range[1]: if length_range[0] and length_range[1]:
print 'Value must have length in range [%d,%d]' % length_range print 'Value must have length in range [%d,%d]' % length_range
elif allowed_range[0]: elif length_range[0]:
print 'Value must have length at least %d' % length_range[0] print 'Value must have length at least %d' % length_range[0]
else: else:
print 'Value must have length at most %d' % length_range[1] print 'Value must have length at most %d' % length_range[1]