Bernhard Leiner avatar Bernhard Leiner committed 29bf7ca

refresh cleanup patch

Comments (0)

Files changed (1)

 # HG changeset patch
-# Parent 50f1a9a14495c5c4fff982a6e27489c446c40696
+# Parent 1be817c8a7672b001eb9e5cce8842ebd0bf424ee
 Cleanup - trimmed trailing spaces, removed unnecessary imports, etc.
 
 Trimmed trailing spaces. Removed unnecessary imports. Standardized quote usage
  # License, or (at your option) any later version.
  #
  # This program is distributed in the hope that it will be useful,
-@@ -27,7 +27,7 @@
- 
- class Document(Element):
-     """ simple document """
--    
-+
-     DECL = '<?xml version="1.0" encoding="UTF-8"?>'
- 
-     def __init__(self, root=None):
-@@ -45,7 +45,7 @@
-             return self.children[0]
-         else:
-             return None
--        
-+
-     def str(self):
-         """
-         Get a string representation of this XML fragment.
-@@ -59,7 +59,7 @@
+@@ -160,7 +160,7 @@
              s.append('\n')
              s.append(root.str())
          return ''.join(s)
 +
      def plain(self):
          """
-         Get a string representation of this XML fragment.
-@@ -75,6 +75,6 @@
+         Get a string representation of this XML document.
+@@ -176,6 +176,6 @@
  
      def __str__(self):
          return unicode(self).encode('utf-8')
 +
      def startElement(self, name, attrs):
          top = self.top()
-         node = Element(unicode(name), parent=top)
+         node = Element(unicode(name))
 @@ -60,7 +60,7 @@
          node.charbuffer = []
          top.append(node)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.