equal
deleted
inserted
replaced
1194 |
1194 |
1195 for k, v in data.items(): |
1195 for k, v in data.items(): |
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(): |
1203 e = "invalid key name in a simple key-value file" |
1203 e = "invalid key name in a simple key-value file" |
1204 raise error.ProgrammingError(e) |
1204 raise error.ProgrammingError(e) |