diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2017-04-21 00:47:59 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2017-04-21 00:48:36 +0900 |
commit | 30a10d3e296376a1b71b121df7ec85ad45f8c5aa (patch) | |
tree | 7e37745937cf9598f440a04eda4cb5ad62e70b3d | |
parent | fb48f5a9210455f9361921be013eddb2ca8ebe51 (diff) | |
download | sphinx-git-30a10d3e296376a1b71b121df7ec85ad45f8c5aa.tar.gz |
Fix typo
-rw-r--r-- | sphinx/builders/gettext.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/builders/gettext.py b/sphinx/builders/gettext.py index 7535101a8..280f2be99 100644 --- a/sphinx/builders/gettext.py +++ b/sphinx/builders/gettext.py @@ -197,7 +197,7 @@ def should_write(filepath, new_content): with open(filepath, 'r', encoding='utf-8') as oldpot: # type: ignore old_content = oldpot.read() old_header_index = old_content.index('"POT-Creation-Date:') - new_header_index = old_content.index('"POT-Creation-Date:') + new_header_index = new_content.index('"POT-Creation-Date:') old_body_index = old_content.index('"PO-Revision-Date:') new_body_index = new_content.index('"PO-Revision-Date:') return ((old_content[:old_header_index] != new_content[:new_header_index]) or |