Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sphinx-doc/sphinx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2018-01-07 06:16:17 +0300
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2018-01-07 06:16:17 +0300
commitd9ae68b2eec3b2c2a8a5708a2e51778511967769 (patch)
tree3022707079b577b7c5989e02db7a19620d4b03ee /sphinx/parsers.py
parent2ae7f26fe531c29cedfa01e2f0c3595a4c680972 (diff)
parent79501767d8a3e7433847af924fa4b9ff5d872612 (diff)
Merge branch 'stable'
Diffstat (limited to 'sphinx/parsers.py')
-rw-r--r--sphinx/parsers.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/sphinx/parsers.py b/sphinx/parsers.py
index 48a155203..34822898f 100644
--- a/sphinx/parsers.py
+++ b/sphinx/parsers.py
@@ -15,8 +15,6 @@ from docutils.parsers.rst import states
from docutils.statemachine import StringList
from docutils.transforms.universal import SmartQuotes
-from sphinx.transforms import SphinxSmartQuotes
-
if False:
# For type annotation
from typing import Any, Dict, List, Type # NOQA
@@ -63,10 +61,11 @@ class RSTParser(docutils.parsers.rst.Parser):
def get_transforms(self):
# type: () -> List[Type[Transform]]
- """Sphinx's reST parser replaces a transform class for smart-quotes by own's"""
+ """Sphinx's reST parser replaces a transform class for smart-quotes by own's
+
+ refs: sphinx.io.SphinxStandaloneReader"""
transforms = docutils.parsers.rst.Parser.get_transforms(self)
transforms.remove(SmartQuotes)
- transforms.append(SphinxSmartQuotes)
return transforms
def parse(self, inputstring, document):