summaryrefslogtreecommitdiff
path: root/sphinx/util/osutil.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2018-10-15 00:33:19 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2018-10-17 02:05:07 +0900
commit257394a4592b4b4f317059fec9938877301c2893 (patch)
tree9dc85b7486b59668ba8a64984c6aa70aadc2f1ed /sphinx/util/osutil.py
parentc584b71b128e2ddc0fa1d7f76bbe68217cc64c50 (diff)
downloadsphinx-git-257394a4592b4b4f317059fec9938877301c2893.tar.gz
Fix #5471: Show appropriate warning for deprecated APIs
Diffstat (limited to 'sphinx/util/osutil.py')
-rw-r--r--sphinx/util/osutil.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/util/osutil.py b/sphinx/util/osutil.py
index 4c75009ee..d1c15621c 100644
--- a/sphinx/util/osutil.py
+++ b/sphinx/util/osutil.py
@@ -186,7 +186,7 @@ def ustrftime(format, *args):
# type: (unicode, Any) -> unicode
"""[DEPRECATED] strftime for unicode strings."""
warnings.warn('sphinx.util.osutil.ustrtime is deprecated for removal',
- RemovedInSphinx30Warning)
+ RemovedInSphinx30Warning, stacklevel=2)
if not args:
# If time is not specified, try to use $SOURCE_DATE_EPOCH variable