diff options
| author | michele.simionato <devnull@localhost> | 2009-08-17 05:18:56 +0000 |
|---|---|---|
| committer | michele.simionato <devnull@localhost> | 2009-08-17 05:18:56 +0000 |
| commit | 77098cfb3225adecffde1e76b147e9f7757ddd0c (patch) | |
| tree | d81f11979259675bb561be87cf242a8f9620123b | |
| parent | 6d339b7e99dadefd1cd7b8a83e0bb322e15d6796 (diff) | |
| download | python-decorator-git-77098cfb3225adecffde1e76b147e9f7757ddd0c.tar.gz | |
Fixed a newline bug
| -rwxr-xr-x | decorator.py | 2 |
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) |
