summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo van Kemenade <hugovk@users.noreply.github.com>2022-06-22 10:54:24 +0300
committerHugo van Kemenade <hugovk@users.noreply.github.com>2022-06-22 10:54:24 +0300
commit6b06d009cdb9e74d008b50d05e7bc4f78210deee (patch)
treebc5a9c487ac0f454e70fade5d2de94500eedbdf1
parentad013a2c1ad7969963acf3dea948632be387f5a0 (diff)
downloadpython-decorator-git-6b06d009cdb9e74d008b50d05e7bc4f78210deee.tar.gz
Replace deprecated logging.warn with logging.warning
-rw-r--r--README.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.rst b/README.rst
index f56161c..07d1d71 100644
--- a/README.rst
+++ b/README.rst
@@ -82,7 +82,7 @@ operations:
result = func(*args, **kw)
dt = time.time() - t0
if dt > timelimit:
- logging.warn('%s took %d seconds', func.__name__, dt)
+ logging.warning('%s took %d seconds', func.__name__, dt)
else:
logging.info('%s took %d seconds', func.__name__, dt)
return result