diff options
| author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-12-15 23:02:28 +0900 |
|---|---|---|
| committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-12-16 21:28:51 +0900 |
| commit | c6bd84a61467a5a60adb11af7b5a7b99ac591fbf (patch) | |
| tree | 239ba4d0bba3e6bf925af917d7c6d219ae1a6f64 /sphinx/writers/texinfo.py | |
| parent | d160adb8118ebe19ee74b3fbd55478490c473ed8 (diff) | |
| download | sphinx-git-c6bd84a61467a5a60adb11af7b5a7b99ac591fbf.tar.gz | |
refactor: Remove u-prefix from strings
Diffstat (limited to 'sphinx/writers/texinfo.py')
| -rw-r--r-- | sphinx/writers/texinfo.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sphinx/writers/texinfo.py b/sphinx/writers/texinfo.py index 55bf1854e..3860ebc5a 100644 --- a/sphinx/writers/texinfo.py +++ b/sphinx/writers/texinfo.py @@ -1206,12 +1206,12 @@ class TexinfoTranslator(SphinxTranslator): if not name: title = cast(nodes.title, node[0]) name = self.escape(title.astext()) - self.body.append(u'\n@cartouche\n@quotation %s ' % name) + self.body.append('\n@cartouche\n@quotation %s ' % name) def _visit_named_admonition(self, node): # type: (nodes.Element) -> None label = admonitionlabels[node.tagname] - self.body.append(u'\n@cartouche\n@quotation %s ' % label) + self.body.append('\n@cartouche\n@quotation %s ' % label) def depart_admonition(self, node): # type: (nodes.Element) -> None @@ -1514,7 +1514,7 @@ class TexinfoTranslator(SphinxTranslator): def visit_seealso(self, node): # type: (nodes.Element) -> None - self.body.append(u'\n\n@subsubheading %s\n\n' % + self.body.append('\n\n@subsubheading %s\n\n' % admonitionlabels['seealso']) def depart_seealso(self, node): @@ -1631,7 +1631,7 @@ class TexinfoTranslator(SphinxTranslator): self.first_param = 0 text = self.escape(node.astext()) # replace no-break spaces with normal ones - text = text.replace(u' ', '@w{ }') + text = text.replace(' ', '@w{ }') self.body.append(text) raise nodes.SkipNode |
