Revision: 4286
Author: pekka.klarck
Date: Wed Nov 17 05:36:26 2010
Log: very minor cleanup
http://code.google.com/p/robotframework/source/detail?r=4286

Modified:
 /trunk/src/robot/utils/pyxmlwriter.py

=======================================
--- /trunk/src/robot/utils/pyxmlwriter.py       Mon May 31 05:21:54 2010
+++ /trunk/src/robot/utils/pyxmlwriter.py       Wed Nov 17 05:36:26 2010
@@ -12,7 +12,6 @@
 #  See the License for the specific language governing permissions and
 #  limitations under the License.

-
 from xml.sax.saxutils import XMLGenerator
 from xml.sax.xmlreader import AttributesImpl

@@ -24,13 +23,12 @@
     def __init__(self, path):
         self.path = path
         self._output = open(path, 'wb')
-        self._writer = XMLGenerator(self._output, 'UTF-8')
+        self._writer = XMLGenerator(self._output, encoding='UTF-8')
         self._writer.startDocument()
         self.closed = False

     def start(self, name, attributes={}, newline=True):
-        attrs = AttributesImpl(attributes)
-        self._writer.startElement(name, attrs)
+        self._writer.startElement(name, AttributesImpl(attributes))
         if newline:
             self.content('\n')

Reply via email to