Commits

Victor Stinner committed bd8485c Merge

Merge

Comments (0)

Files changed (3)

 2a3455ac305a947a630f7eae7b3be51dd4b14ccf hachoir-metadata-1.3.1
 71f397cf37cb14056aeaf7c7defccfe4438d3edb hachoir-regex-1.0.5
 79935e8feb6facfe04fa68d8bd1a9f5919bef6f4 hachoir-metadata-1.3.2
+11777b968d5ee0a74d67c06c3cc43f44551de882 hachoir-core-1.3.3
 2d937bdccb00b9f51fea6cebe20f843571d1af35 hachoir-parser-1.3.2

hachoir-core/ChangeLog

-hachoir-core 1.3.3
-==================
+hachoir-core 1.3.3 (2010-02-26)
+===============================
 
-XXX
+ * Add writelines() method to UnicodeStdout
 
 hachoir-core 1.3.2 (2010-01-28)
 ===============================

hachoir-core/hachoir_core/i18n.py

         getTerminalCharset.value = _getTerminalCharset()
         return getTerminalCharset.value
 
-class UnicodeStdout:
+class UnicodeStdout(object):
     def __init__(self, old_device, charset):
         self.device = old_device
         self.charset = charset
             text = text.encode(self.charset, 'replace')
         self.device.write(text)
 
+    def writelines(self, lines):
+        for text in lines:
+            self.write(text)
+
 def initLocale():
     # Only initialize locale once
     if initLocale.is_done: