summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichele Simionato <michele.simionato@gmail.com>2022-06-22 15:50:54 +0200
committerGitHub <noreply@github.com>2022-06-22 15:50:54 +0200
commit6f4cf6f01e81c860ab0add4580f73e099bf8abba (patch)
treebc5a9c487ac0f454e70fade5d2de94500eedbdf1
parentad013a2c1ad7969963acf3dea948632be387f5a0 (diff)
parent6b06d009cdb9e74d008b50d05e7bc4f78210deee (diff)
downloadpython-decorator-git-6f4cf6f01e81c860ab0add4580f73e099bf8abba.tar.gz
Merge pull request #143 from hugovk/fix-logging.warn-deprecation
Docs: 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