From 138b6715386e6d802e6cf55a23136098e5944e6e Mon Sep 17 00:00:00 2001 From: Avery Pennarun Date: Mon, 3 May 2010 22:11:09 -0400 Subject: [PATCH] wvtest.py: handle lines that have trailing "# whatever" comments. --- python/wvtest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/wvtest.py b/python/wvtest.py index 7ae261a..51a66b8 100755 --- a/python/wvtest.py +++ b/python/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+\((.*)\)(\s*#.*)?$', r'\1', text); return text -- 2.39.2