From 37073e11f9a9ed284136b8706d60e2766fc0fc93 Mon Sep 17 00:00:00 2001 From: fijal Date: Fri, 18 Jan 2008 17:35:33 +0100 Subject: [PATCH] [svn r50755] Port from reporter-merge branch. --HG-- branch : trunk --- py/code/source.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py/code/source.py b/py/code/source.py index 564c42895..56a710c6c 100644 --- a/py/code/source.py +++ b/py/code/source.py @@ -109,7 +109,7 @@ class Source(object): for start in range(lineno, -1, -1): trylines = self.lines[start:lineno+1] # quick hack to indent the source and get it as a string in one go - trylines.insert(0, 'if 0:') + trylines.insert(0, 'def xxx():') trysource = '\n '.join(trylines) # ^ space here try: