[MERGE]Change "print >> outfile" to "outfile.write".
Blake Winton
bwinton at latte.ca
Tue Oct 16 17:40:33 BST 2007
Martin Pool wrote:
> On 10/16/07, John Arbash Meinel <john at arbash-meinel.com> wrote:
>> I've always felt like "print >> outfile, 'string'" was worse than
>> "outfile.write('string\n')".
> I tend to use write in new code, and I believe that in Python 3000
> print is changing away from being a statement with special syntax. It
> might be good to change that now, and maybe someone would also like to
> do a semi-mechanical patch to update all existing uses.
Ta-da! Well, actually, ta-da-ish...
I'm getting a bunch of (what I believe to be new) errors of the form:
ERROR: test_bundle.V4WeaveBundleTester.test_alt_timezone_bundle
Weave invariant violated: unexpected line ' w\n'
But I can't see where my semi-mechanical translation went wrong, and
debugging the tests over my SSH link is just too painful. If someone
has a few minutes to look through the changes, I would love the help,
otherwise I'll try to figure out what went wrong when I get home tonight.
Thanks,
Blake.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: writes.patch
Type: text/x-patch
Size: 57890 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20071016/cf88a42b/attachment-0001.bin
More information about the bazaar
mailing list