decorator 5.2.0__py3-none-any.whl → 5.2.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {decorator-5.2.0.dist-info → decorator-5.2.1.dist-info}/METADATA +1 -1
- decorator-5.2.1.dist-info/RECORD +7 -0
- decorator.py +5 -1
- decorator-5.2.0.dist-info/RECORD +0 -7
- {decorator-5.2.0.dist-info → decorator-5.2.1.dist-info}/LICENSE.txt +0 -0
- {decorator-5.2.0.dist-info → decorator-5.2.1.dist-info}/WHEEL +0 -0
- {decorator-5.2.0.dist-info → decorator-5.2.1.dist-info}/pbr.json +0 -0
- {decorator-5.2.0.dist-info → decorator-5.2.1.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,7 @@
|
|
1
|
+
decorator.py,sha256=cWnO6cKKohQrXNEG1-Fauiw8djwE3f2PA2gJGofwgXA,17067
|
2
|
+
decorator-5.2.1.dist-info/LICENSE.txt,sha256=kU7m7Xil78FzvaaY8nCERMqdFA_MQIDGDQUD1A2znaY,1308
|
3
|
+
decorator-5.2.1.dist-info/METADATA,sha256=i76fp7lNo0QbinX3NBJjSu_GhVp9A8iuab--m-8mKB4,3934
|
4
|
+
decorator-5.2.1.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
5
|
+
decorator-5.2.1.dist-info/pbr.json,sha256=AL84oUUWQHwkd8OCPhLRo2NJjU5MDdmXMqRHv-posqs,47
|
6
|
+
decorator-5.2.1.dist-info/top_level.txt,sha256=Kn6eQjo83ctWxXVyBMOYt0_YpjRjBznKYVuNyuC_DSI,10
|
7
|
+
decorator-5.2.1.dist-info/RECORD,,
|
decorator.py
CHANGED
@@ -41,7 +41,7 @@ import functools
|
|
41
41
|
from contextlib import _GeneratorContextManager
|
42
42
|
from inspect import getfullargspec, iscoroutinefunction, isgeneratorfunction
|
43
43
|
|
44
|
-
__version__ = '5.2.
|
44
|
+
__version__ = '5.2.1'
|
45
45
|
|
46
46
|
DEF = re.compile(r'\s*def\s*([_\w][_\w\d]*)\s*\(')
|
47
47
|
POS = inspect.Parameter.POSITIONAL_OR_KEYWORD
|
@@ -256,6 +256,10 @@ def decorate(func, caller, extras=(), kwsyntax=False):
|
|
256
256
|
fun.__module__ = func.__module__
|
257
257
|
except AttributeError:
|
258
258
|
pass
|
259
|
+
try:
|
260
|
+
fun.__name__ = func.__name__
|
261
|
+
except AttributeError: # happens with old versions of numpy.vectorize
|
262
|
+
func.__name__ == 'noname'
|
259
263
|
try:
|
260
264
|
fun.__dict__.update(func.__dict__)
|
261
265
|
except AttributeError:
|
decorator-5.2.0.dist-info/RECORD
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
decorator.py,sha256=xpjiP2Ajfg6xo0WD2W_rsCI0aDo0CBfVxl0WLtL_Vh4,16912
|
2
|
-
decorator-5.2.0.dist-info/LICENSE.txt,sha256=kU7m7Xil78FzvaaY8nCERMqdFA_MQIDGDQUD1A2znaY,1308
|
3
|
-
decorator-5.2.0.dist-info/METADATA,sha256=K7pJ6uWpeRYPzx2piRZ8c7LrNKSRVnyPdwJgyjkmzMY,3934
|
4
|
-
decorator-5.2.0.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
5
|
-
decorator-5.2.0.dist-info/pbr.json,sha256=AL84oUUWQHwkd8OCPhLRo2NJjU5MDdmXMqRHv-posqs,47
|
6
|
-
decorator-5.2.0.dist-info/top_level.txt,sha256=Kn6eQjo83ctWxXVyBMOYt0_YpjRjBznKYVuNyuC_DSI,10
|
7
|
-
decorator-5.2.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|