Commits

Martin Scharrer  committed 1a9eac8

Fixes.

  • Participants
  • Parent commits 86995c6

Comments (0)

Files changed (1)

File py/SvnDumpLoad/Format.py

     @classmethod
     def parse(cls, infile, optional=False):
         """ Parses a SVN dumpfile record. """
-        self = cls()
+        self = cls.create_empty()
         try:
             self.parse_headers(infile)
         except (SvnDumpfileRecordNotFound,EOFError) as e:
 
         return self
 
+    @classmethod
+    def create_empty(cls):
+        return cls()
+
+
     def parse_headers(self, infile):
         """ Parses the headers of a record. """
         line = infile.readnonemptyline()
             outfile.write("\n")
 
 
-class Node(RevisionWithContent):
+class Node(RecordWithContent):
     _header_order = (
         (0, 'Node-path'),
         (1, 'Node-kind'),
             props.set_property('svn:log', log)
         self._nodes = nodes
 
+    @classmethod
+    def create_empty(cls):
+        return cls(0, 0)
+
     def get_revnum(self):
         return int(self._headers['Revision-number'])
 
         self._nodes = list()
 
     def remove_node(self, node):
-        self._nodes = [n in self._nodes if n != none]
+        self._nodes = [n for n in self._nodes if n != none]
 
     def append_node(self, node):
         if not isinstance(node, Node):