X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/6f273e60e71c0b8ea872ec30ac4178435671218f..1e1c01fece5a4a86a762af265e382da5dbb2d8cb:/lib/python/Components/config.py diff --git a/lib/python/Components/config.py b/lib/python/Components/config.py index 1ce67f8e..3bbdde10 100644 --- a/lib/python/Components/config.py +++ b/lib/python/Components/config.py @@ -148,7 +148,7 @@ class configSequenceArg: def get(self, type, args = ()): # configsequencearg.get ("IP") if (type == "IP"): - return (("."), [(1,255),(0,255),(0,255),(0,255)], "") + return (("."), [(0,255),(0,255),(0,255),(0,255)], "") # configsequencearg.get ("MAC") if (type == "MAC"): return ((":"), [(1,255),(1,255),(1,255),(1,255),(1,255),(1,255)], "") @@ -266,9 +266,9 @@ class configSequence: #if diff > 0: ## if this helps?! #value += " " * diff - print (("%0" + str(len(str(self.valueBounds[num][1]))) + "d") % int(i)) + print (("%0" + str(len(str(self.valueBounds[num][1]))) + "d") % i) if (self.censorChar == ""): - value += ("%0" + str(len(str(self.valueBounds[num][1]))) + "d") % int(i) + value += ("%0" + str(len(str(self.valueBounds[num][1]))) + "d") % i else: value += (self.censorChar * len(str(self.valueBounds[num][1]))) num += 1