diff options
| author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-10-15 00:33:19 +0900 |
|---|---|---|
| committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-10-17 02:05:07 +0900 |
| commit | 257394a4592b4b4f317059fec9938877301c2893 (patch) | |
| tree | 9dc85b7486b59668ba8a64984c6aa70aadc2f1ed /sphinx/util/osutil.py | |
| parent | c584b71b128e2ddc0fa1d7f76bbe68217cc64c50 (diff) | |
| download | sphinx-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.py | 2 |
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 |
