[MERGE][Bug #116143] commit raises UnicodeError (traceback) if LANG is incorrect

Aaron Bentley aaron.bentley at utoronto.ca
Thu Aug 9 15:54:17 BST 2007


Aaron Bentley has voted tweak.
Status is now: Conditionally approved
Comment:
Is there any reason not to do this as a format string?  '""" + message + 
"""' is not as clear as '%s' to me.

@@ -96,7 +102,7 @@
      s = f.read()
      f.close()
      f = file(fn, 'wb')
-    f.write('test message from fed\\n')
+    f.write('""" + message + """')
      f.write(s)
      f.close()
  """)

For details, see: 
http://bundlebuggy.aaronbentley.com/request/%3C46B85A1C.2000203%40warwick.ac.uk%3E



More information about the bazaar mailing list