Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mrDoctorWho/xmpppy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'xmpp/debug.py')
-rw-r--r--xmpp/debug.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmpp/debug.py b/xmpp/debug.py
index e84b4c1..ccccd02 100644
--- a/xmpp/debug.py
+++ b/xmpp/debug.py
@@ -162,13 +162,13 @@ class Debug:
self._fh.write(output)
except Exception:
# unicode strikes again ;)
- s = u""
+ s = unicode()
for i in xrange(len(output)):
if ord(output[i]) < 128:
c = output[i]
else:
c = "?"
- s = s + c
+ s += c
self._fh.write("%s%s%s" % (pre, s, suf))
self._fh.flush()