The line fop = builtins.open(file, 'w+') ...
shoulkd use wb
not w+
otherwise the subversion mailer.py script fails with:
Traceback (most recent call last):
File "./mailer.py", line 1534, in <module>
sys.argv[3:3+expected_args])
File "/usr/lib64/python2.7/site-packages/svn/core.py", line 307, in run_app
return func(application_pool, *args, **kw)
File "./mailer.py", line 126, in main
return messenger.generate()
File "./mailer.py", line 493, in generate
group, params, paths, subpool)
File "./mailer.py", line 776, in generate_content
renderer.render(data)
File "./mailer.py", line 1123, in render
self._render_diffs(data.diffs, '')
File "./mailer.py", line 1166, in _render_diffs
for diff in diffs:
File "./mailer.py", line 965, in __getitem__
src_fname, dst_fname = diff.get_files()
File "/usr/lib64/python2.7/site-packages/svn/fs.py", line 102, in get_files
self._dump_contents(self.tempfile1, self.root1, self.path1)
File "/usr/lib64/python2.7/site-packages/svn/fs.py", line 87, in _dump_contents
fp.write(chunk)
TypeError: must be unicode, not str
There are numerous references to this fix but as a mere 'user' I cannot edit that file. Can you do it?
PS: This is Colin's colleague Dave (that is trying to get subversion to work they way it did on Webfaction)