summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormichele.simionato <devnull@localhost>2009-08-17 05:18:56 +0000
committermichele.simionato <devnull@localhost>2009-08-17 05:18:56 +0000
commit77098cfb3225adecffde1e76b147e9f7757ddd0c (patch)
treed81f11979259675bb561be87cf242a8f9620123b
parent6d339b7e99dadefd1cd7b8a83e0bb322e15d6796 (diff)
downloadpython-decorator-git-77098cfb3225adecffde1e76b147e9f7757ddd0c.tar.gz
Fixed a newline bug
-rwxr-xr-xdecorator.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/decorator.py b/decorator.py
index 79c320d..780c13a 100755
--- a/decorator.py
+++ b/decorator.py
@@ -137,7 +137,7 @@ class FunctionMaker(object):
signature = None
func = obj
fun = cls(func, name, signature, defaults)
- ibody = ''.join(' ' + line for line in body.splitlines())
+ ibody = '\n'.join(' ' + line for line in body.splitlines())
return fun.make('def %(name)s(%(signature)s):\n' + ibody,
evaldict, addsource, **attrs)