edit source

This commit is contained in:
jeffy-g
2017-04-06 03:37:40 +09:00
parent dd88d64d67
commit d4d69522f5
2 changed files with 2 additions and 2 deletions

View File

@@ -478,7 +478,7 @@ class Port(object):
firstLine = firstLine.strip()
# If XML-style start of tag encountered, detect as XML
if re.match(RE_XML_START, firstLine):
if re.search(RE_XML_START, firstLine):
if encoding:
return "XML", cls.importXml(string, iportuser, encoding)
else:

View File

@@ -68,7 +68,7 @@ m_re_sub(stpwth, 1000, 100000, "asdfadsasdaasdfadsasda")
return self.__last * 1000
def __update_stat(self, v):
# :param v: unit of ms
# :param v: float unit of ms
if self.min == 0.0:
self.min = v
if self.max < v: