Commits

Jakub Wilk committed 5538510

storage: enumerate line numbers starting from 1.

Comments (0)

Files changed (1)

         self.data.difference_update(candidates)
 
     def import_(self, file):
-        for n, line in enumerate(file):
+        for n, line in enumerate(file, 1):
             match = self.parse_line(line)
             if match is None:
                 raise TextStorageSyntaxError('cannot parse {name}:{n}: {line!r}'.format(name=file.name, n=n, line=line))