Show More
@@ -1196,7 +1196,7 b' class simplekeyvaluefile(object):' | |||||
1196 | if k == self.firstlinekey: |
|
1196 | if k == self.firstlinekey: | |
1197 | e = "key name '%s' is reserved" % self.firstlinekey |
|
1197 | e = "key name '%s' is reserved" % self.firstlinekey | |
1198 | raise error.ProgrammingError(e) |
|
1198 | raise error.ProgrammingError(e) | |
1199 | if not k[0].isalpha(): |
|
1199 | if not k[0:1].isalpha(): | |
1200 | e = "keys must start with a letter in a key-value file" |
|
1200 | e = "keys must start with a letter in a key-value file" | |
1201 | raise error.ProgrammingError(e) |
|
1201 | raise error.ProgrammingError(e) | |
1202 | if not k.isalnum(): |
|
1202 | if not k.isalnum(): |
General Comments 0
You need to be logged in to leave comments.
Login now