From: Avery Pennarun Date: Wed, 6 Jan 2010 18:02:58 +0000 (-0500) Subject: wvtest: coerce non-string arguments when printing. X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=3f901e2ff29723efa0e096cd2e010e5b956e6691;p=packages%2Fb%2Fbup.git wvtest: coerce non-string arguments when printing. --- diff --git a/wvtest.py b/wvtest.py index b5e86ba..1ab7a3f 100755 --- 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