/usr/share/doc/python-jabber/patches/unused/JacobLundqvist/debug_v0.3.1.diff is in python-jabber 0.5.0-1.6.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | --- diffed/x-readwrite 2003-01-13 00:22:25.000000000 +0100
+++ xmlstream.py 2003-01-13 00:23:07.000000000 +0100
@@ -308,7 +308,18 @@
def DEBUG(self,txt):
if self._debug:
- sys.stderr.write("DEBUG: %s\n" % txt)
+ try:
+ sys.stderr.write("DEBUG: %s\n" % txt)
+ except:
+ # unicode strikes again ;)
+ s=u''
+ for i in range(len(txt)):
+ if ord(txt[i]) < 128:
+ c = txt[i]
+ else:
+ c = '?'
+ s=s+c
+ sys.stderr.write("DEBUG: %s\n" % s )
def getSocket(self):
return self._sock
|