summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2017-04-21 00:47:59 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2017-04-21 00:48:36 +0900
commit30a10d3e296376a1b71b121df7ec85ad45f8c5aa (patch)
tree7e37745937cf9598f440a04eda4cb5ad62e70b3d
parentfb48f5a9210455f9361921be013eddb2ca8ebe51 (diff)
downloadsphinx-git-30a10d3e296376a1b71b121df7ec85ad45f8c5aa.tar.gz
Fix typo
-rw-r--r--sphinx/builders/gettext.py2
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