This commit is contained in:
Barış Metin
2005-10-30 16:22:58 +00:00
parent 766766439b
commit 4a43800b9b
+7
View File
@@ -50,6 +50,13 @@ class VersionItem:
def __init__(self, itemstring): def __init__(self, itemstring):
# special-case: 1.5p
# here "p" comes as a separate itemstring and conflicts with
# keyword "p". But keyword should allways contain an integer prefix.
# So, skipping looking for keywords if the length() is 1 makes the
# trick.
if len(itemstring) > 1:
for keyword in keywords.keys(): for keyword in keywords.keys():
if itemstring.startswith(keyword): if itemstring.startswith(keyword):