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 --- CHANGES.md | 6 ++++++ documentation.pdf | 6 +++--- src/decorator.py | 7 +++++-- 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 1b5a982..eeede56 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,6 +1,12 @@ HISTORY -------- +## 4.0.7 (2016-02-06) + +Switched to a new changelog format (the one in http://keepachangelog.com/) +since it was contributed by Alexander Artemenko. Re-added a newline to support +old version of Python, as requested by [azjps](https://github.com/azjps). + ## 4.0.6 (2015-12-11) Removed a file x.py accidentally entered in the tarball. diff --git a/documentation.pdf b/documentation.pdf index 02a0457..76bb698 100644 --- a/documentation.pdf +++ b/documentation.pdf @@ -269,7 +269,7 @@ endobj << /Outlines 83 0 R /PageLabels 125 0 R /PageMode /UseNone /Pages 103 0 R /Type /Catalog >> endobj 82 0 obj -<< /Author (Michele Simionato) /CreationDate (D:20151211051408-01'00') /Creator (\(unspecified\)) /Keywords () /Producer (ReportLab PDF Library - www.reportlab.com) /Subject (\(unspecified\)) +<< /Author (Michele Simionato) /CreationDate (D:20160206064643-01'00') /Creator (\(unspecified\)) /Keywords () /Producer (ReportLab PDF Library - www.reportlab.com) /Subject (\(unspecified\)) /Title (The decorator module) >> endobj 83 0 obj @@ -403,7 +403,7 @@ q 1 0 0 1 91.03937 3 cm q 0 0 0 rg -BT 1 0 0 1 0 2 Tm /F1 10 Tf 12 TL (4.0.5 \(2015-12-11\)) Tj T* ET +BT 1 0 0 1 0 2 Tm /F1 10 Tf 12 TL (4.0.5 \(2016-02-06\)) Tj T* ET Q Q q @@ -9187,7 +9187,7 @@ xref trailer << /ID % ReportLab generated PDF document -- digest (http://www.reportlab.com) - [(\344\271\334\024\243\366\306\346\246\010\347/\245\002\314\236) (\344\271\334\024\243\366\306\346\246\010\347/\245\002\314\236)] + [(\347\367c\007_*\306\025\301d\365f\375\246\245\214) (\347\367c\007_*\306\025\301d\365f\375\246\245\214)] /Info 82 0 R /Root 81 0 R /Size 147 >> startxref 321882 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