mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 17:46:37 +03:00
Another Travis patch
This commit is contained in:
parent
6010db56ee
commit
7ddb8f7cbe
|
@ -18,7 +18,7 @@ from lib.core.enums import OS
|
||||||
from thirdparty import six
|
from thirdparty import six
|
||||||
|
|
||||||
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
||||||
VERSION = "1.3.5.67"
|
VERSION = "1.3.5.68"
|
||||||
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
|
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
|
||||||
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
|
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
|
||||||
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)
|
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)
|
||||||
|
|
|
@ -12,7 +12,11 @@
|
||||||
|
|
||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
|
|
||||||
import _markupbase
|
try:
|
||||||
|
import _markupbase as markupbase
|
||||||
|
except:
|
||||||
|
import markupbase
|
||||||
|
|
||||||
import re
|
import re
|
||||||
|
|
||||||
__all__ = ["SGMLParser", "SGMLParseError"]
|
__all__ = ["SGMLParser", "SGMLParseError"]
|
||||||
|
@ -55,7 +59,7 @@ class SGMLParseError(RuntimeError):
|
||||||
# chunks). Entity references are passed by calling
|
# chunks). Entity references are passed by calling
|
||||||
# self.handle_entityref() with the entity reference as argument.
|
# self.handle_entityref() with the entity reference as argument.
|
||||||
|
|
||||||
class SGMLParser(_markupbase.ParserBase):
|
class SGMLParser(markupbase.ParserBase):
|
||||||
# Definition of entities -- derived classes may override
|
# Definition of entities -- derived classes may override
|
||||||
entity_or_charref = re.compile('&(?:'
|
entity_or_charref = re.compile('&(?:'
|
||||||
'([a-zA-Z][-.a-zA-Z0-9]*)|#([0-9]+)'
|
'([a-zA-Z][-.a-zA-Z0-9]*)|#([0-9]+)'
|
||||||
|
@ -74,7 +78,7 @@ class SGMLParser(_markupbase.ParserBase):
|
||||||
self.lasttag = '???'
|
self.lasttag = '???'
|
||||||
self.nomoretags = 0
|
self.nomoretags = 0
|
||||||
self.literal = 0
|
self.literal = 0
|
||||||
_markupbase.ParserBase.reset(self)
|
markupbase.ParserBase.reset(self)
|
||||||
|
|
||||||
def setnomoretags(self):
|
def setnomoretags(self):
|
||||||
"""Enter literal mode (CDATA) till EOF.
|
"""Enter literal mode (CDATA) till EOF.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user