From ada800ba94f9a908597c5c155098af7e11b16557 Mon Sep 17 00:00:00 2001 From: almelid Date: Sat, 19 Jun 2010 12:00:20 +0000 Subject: [PATCH] Fikset en bug: input_str lette etter en variabel allowed_range, som ikke eksisterte. Endret dette til input_range. --- data | Bin 9216 -> 9216 bytes text_based.py | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/data b/data index 01eea0916a8f0ffdbcb66922bf8ebb98db5eceef..a82abf75ac14b5fb97236291b3fb43e88ef5300c 100644 GIT binary patch delta 228 zcmZqhXz-XI&B(P;<^?kc6Y~uQ<`>L2HVd+xVK(8M+q-ni{CXA!QAYow)O;@C){lq$ zSQs=JeN%I?Q;W0mv-5KjQ&RbP85kItm@k8LUIyws&MYd-#3Cunn30&5mza@Pl2>YI zWNeZ$`31KO(1w=`%wL#a0@dAR7UyD?gsNiVW|n45%*jp7$xLC~#KOkHa)^QX5Kz?) zW;+{3b_PdDMpFhO149E{12bJiO9ew?D^m+A6LUR7V@pdz6NpuFluA;IOEUA)6^iq7 QQx%F!O4HJm7D?~`0RJ*UJ^%m! delta 57 zcmZqhXz-XI&B(S<<^}U+76B#}mKO}nFE$Gb++&{nf?I}-k@*V)^A{lh74zmV`~obC NSp--%vq=2m1^^5s5(fYP diff --git a/text_based.py b/text_based.py index 8e02cf4..7cb730b 100755 --- a/text_based.py +++ b/text_based.py @@ -109,7 +109,7 @@ class Menu(): (length_range[1] and length > length_range[1])): if length_range[0] and length_range[1]: 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] else: print 'Value must have length at most %d' % length_range[1]