Wrapt

Latest version: v1.17.2

Safety actively analyzes 706267 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 4 of 8

1.10.9

--------------

**Bugs Fixed**

* Code for ``inspect.getargspec()`` when using Python 2.6 was missing
import of ``sys`` module.

1.10.8

--------------

**Bugs Fixed**

* Ensure that ``inspect.getargspec()`` is only used with Python 2.6 where
required, as function has been removed in Python 3.6.

1.10.7

--------------

**Bugs Fixed**

* The mod operator '%' was being incorrectly proxied in Python variant of
object proxy to the xor operator '^'.

1.10.6

--------------

**Bugs Fixed**

* Registration of post import hook would fail with an exception if
registered after another import hook for the same target module had been
registered and the target module also imported.

**New Features**

* Support for testing with Travis CI added to repository.

1.10.5

--------------

**Bugs Fixed**

* Post import hook discovery was not working correctly where multiple
target modules were registered in the same entry point list. Only the
callback for the last would be called regardless of the target module.

* If a ``WeakFunctionProxy`` wrapper was used around a method of a class
which was decorated using a wrapt decorator, the decorator wasn't being
invoked when the method was called via the weakref proxy.

**Features Changed**

* The ``register_post_import_hook()`` function, modelled after the
function of the same name in PEP-369 has been extended to allow a string
name to be supplied for the import hook. This needs to be of the form
``module::function`` and will result in an import hook proxy being used
which will only load and call the function of the specified moduled when
the import hook is required. This avoids needing to load the code needed
to operate on the target module unless required.

1.10.4

--------------

**Bugs Fixed**

* Fixup botched package version number from 1.10.3 release.

Page 4 of 8

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.