Update of /cvsroot/mailman/mailman/admin/bin
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25572/admin/bin

Modified Files:
        templ2po.py 
Log Message:
templ2po.py normalization of '\r\n' to '\n'.
templ2pot.py ... associated change.
templ2po.py ...  bug fix.


Index: templ2po.py
===================================================================
RCS file: /cvsroot/mailman/mailman/admin/bin/templ2po.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- templ2po.py 6 Dec 2005 04:21:28 -0000       1.1
+++ templ2po.py 8 Jan 2006 08:18:15 -0000       1.2
@@ -77,7 +77,7 @@
 def normalize(s, eightbit):
     # This converts the various Python string types into a format that is
     # appropriate for .po files, namely much closer to C style.
-    lines = s.split('\n')
+    lines = s.splitlines()
     if len(lines) == 1:
         s = '"' + escape(s, eightbit) + '"'
     else:

_______________________________________________
Mailman-checkins mailing list
[email protected]
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org

Reply via email to