Another Travis patch

This commit is contained in:
Miroslav Stampar
2019-05-09 13:48:44 +02:00
parent 6010db56ee
commit 7ddb8f7cbe
2 changed files with 8 additions and 4 deletions

View File

@@ -12,7 +12,11 @@
from __future__ import print_function
import _markupbase
try:
import _markupbase as markupbase
except:
import markupbase
import re
__all__ = ["SGMLParser", "SGMLParseError"]
@@ -55,7 +59,7 @@ class SGMLParseError(RuntimeError):
# chunks). Entity references are passed by calling
# self.handle_entityref() with the entity reference as argument.
class SGMLParser(_markupbase.ParserBase):
class SGMLParser(markupbase.ParserBase):
# Definition of entities -- derived classes may override
entity_or_charref = re.compile('&(?:'
'([a-zA-Z][-.a-zA-Z0-9]*)|#([0-9]+)'
@@ -74,7 +78,7 @@ class SGMLParser(_markupbase.ParserBase):
self.lasttag = '???'
self.nomoretags = 0
self.literal = 0
_markupbase.ParserBase.reset(self)
markupbase.ParserBase.reset(self)
def setnomoretags(self):
"""Enter literal mode (CDATA) till EOF.