[Python-apps-team] Bug#676176: API change in python-subversion breaks trac

W. Martin Borgert debacle at debian.org
Fri Dec 21 17:18:03 UTC 2012


This workaround works for me in the case of Trac:

--- orig/usr/share/pyshared/svn/core.py	2012-06-04 08:13:32.000000000 +0200
+++ /usr/share/pyshared/svn/core.py	2012-12-21 15:56:01.857716004 +0100
@@ -145,7 +145,7 @@
        # read the rest of the stream
        chunks = [ ]
        while 1:
-        data = svn_stream_read(self._stream, SVN_STREAM_CHUNK_SIZE)
+        data = svn_stream_read(self._stream, int(SVN_STREAM_CHUNK_SIZE))
          if not data:
            break
          chunks.append(data)

I'm not sure about any negative effects, however.



More information about the Python-apps-team mailing list