summaryrefslogtreecommitdiff
path: root/sphinx/util/nodes.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2017-05-26 00:15:00 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2017-05-26 00:15:00 +0900
commitca6a1edd2f97795eaba94e79e7ba34c40f83e2c7 (patch)
treea1c462fdca8e47a1672e4dfd9d512241ca7eaee5 /sphinx/util/nodes.py
parentbf42f3434883c15141de3298ba7e875fca8e5702 (diff)
parent180d665b6c82f5758c8e5a5ecdad7af87aadbc1b (diff)
downloadsphinx-git-ca6a1edd2f97795eaba94e79e7ba34c40f83e2c7.tar.gz
Merge branch 'stable'
Diffstat (limited to 'sphinx/util/nodes.py')
-rw-r--r--sphinx/util/nodes.py14
1 files changed, 0 insertions, 14 deletions
diff --git a/sphinx/util/nodes.py b/sphinx/util/nodes.py
index 14bd09791..33417b380 100644
--- a/sphinx/util/nodes.py
+++ b/sphinx/util/nodes.py
@@ -29,20 +29,6 @@ if False:
logger = logging.getLogger(__name__)
-class WarningStream(object):
-
- def __init__(self, warnfunc):
- # type: (Callable) -> None
- self.warnfunc = warnfunc
- self._re = re.compile(r'\((DEBUG|INFO|WARNING|ERROR|SEVERE)/[0-4]\)')
-
- def write(self, text):
- # type: (str) -> None
- text = text.strip()
- if text:
- self.warnfunc(self._re.sub(r'\1:', text), None, '')
-
-
# \x00 means the "<" was backslash-escaped
explicit_title_re = re.compile(r'^(.+?)\s*(?<!\x00)<(.*?)>$', re.DOTALL)
caption_ref_re = explicit_title_re # b/w compat alias