Nikolas Coukouma wrote:
This bug occurred when pulling into a darcs directory that didn't exist
yet, so create was triggered
The simple fix seems to be removing the 'U', which doesn't seem useful
anyway.
Traceback (most recent call last):
File "/Users/atrus/bin/tailor", line 35, in <module>
main()
> ...
File
"/Users/atrus/bin/tailor-0.9.27/vcpx/repository/darcs/__init__.py", line
75, in create
boring = open(boringname, 'wU')
ValueError: universal newline mode can only be used with modes starting
with 'r'
Uh, I see: Python behaviour changed in version 2.5 wrt universal newline
in write mode... I fail to see that as a feature: I assume that now one
has to know the underlying newline convention and write the lines
accordingly...
Can anybody using darcs under Windows verify if it (darcs) is able to
handle a boring file written by the following snippet of Python code?
lines = ['\.hi$', '\.o$']
boring = open('boring', 'w')
boring.write('\n'.join(lines))
boring.write('\n')
boring.close()
Thanks for reporting,
bye, lele.
_______________________________________________
Tailor mailing list
[email protected]
http://lists.zooko.com/mailman/listinfo/tailor