]> arthur.barton.de Git - bup.git/commitdiff
wvtest: coerce non-string arguments when printing.
authorAvery Pennarun <apenwarr@gmail.com>
Wed, 6 Jan 2010 18:02:58 +0000 (13:02 -0500)
committerAvery Pennarun <apenwarr@gmail.com>
Wed, 6 Jan 2010 18:02:58 +0000 (13:02 -0500)
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