From a2ef14599689beea106d93eb46ce2dc69c5e7811 Mon Sep 17 00:00:00 2001 From: Michele Simionato Date: Sat, 6 Feb 2016 06:47:31 +0100 Subject: Made release 4.0.7 --- src/decorator.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/decorator.py b/src/decorator.py index a0c5ccd..4a02e4e 100644 --- a/src/decorator.py +++ b/src/decorator.py @@ -1,6 +1,6 @@ # ######################### LICENSE ############################ # -# Copyright (c) 2005-2015, Michele Simionato +# Copyright (c) 2005-2016, Michele Simionato # All rights reserved. # Redistribution and use in source and binary forms, with or without @@ -40,7 +40,7 @@ import operator import itertools import collections -__version__ = '4.0.6' +__version__ = '4.0.7' if sys.version >= '3': from inspect import getfullargspec @@ -179,6 +179,9 @@ class FunctionMaker(object): if n in ('_func_', '_call_'): raise NameError('%s is overridden in\n%s' % (n, src)) + if not src.endswith('\n'): # add a newline for old Pythons + src += '\n' + # Ensure each generated function has a unique filename for profilers # (such as cProfile) that depend on the tuple of (, # , ) being unique. -- cgit v1.2.1