]> arthur.barton.de Git - bup.git/blobdiff - wvtest.py
wvtest: coerce non-string arguments when printing.
[bup.git] / wvtest.py
index b5e86ba2d64eb064879d66638b5caa3d0a918d2c..1ab7a3ffd09deacb58188b8ca8f154e459bce7f6 100755 (executable)
--- a/wvtest.py
+++ b/wvtest.py
@@ -44,7 +44,7 @@ if __name__ != "__main__":   # we're imported as a module
     
     def _code():
         (filename, line, func, text) = traceback.extract_stack()[-3]
-        text = re.sub(r'^\w+\((.*)\)$', r'\1', text);
+        text = re.sub(r'^\w+\((.*)\)$', r'\1', unicode(text));
         return text