Automatically replace use of deprecated APIs
Project description
dissolve
The dissolve library helps users replaces calls to deprecated library APIs.
Example
E.g. if you had a function “inc” that has been renamed to “increment” in version 0.1.0 of your library:
from dissolve import replace_me
@replace_me("increment({x})", since="0.1.0")
def inc(x):
return x + 1
Running this code will yield a warning:
...
>>> inc(x=3)
<stdin>:1: DeprecationWarning: <function inc at 0x7feaf5ead5a0> has been deprecated since 0.1.0; use 'increment(4)' instead
4
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dissolve-0.0.2.tar.gz
(6.3 kB
view hashes)