diff options
Diffstat (limited to 'xmpp/debug.py')
-rw-r--r-- | xmpp/debug.py | 4 |
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() |