Commit f394c0de authored by Iustin Pop's avatar Iustin Pop
Browse files

Fix typo in _ANS1_TIME_REGEX



Thanks Balasz!
Signed-off-by: default avatarIustin Pop <iustin@google.com>
Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
parent f40ae421
......@@ -107,7 +107,7 @@ _SHELLPARAM_REGEX = re.compile(r"^[-a-zA-Z0-9._+/:%@]+$")
_PARSEUNIT_REGEX = re.compile(r"^([.\d]+)\s*([a-zA-Z]+)?$")
#: ASN1 time regexp
_ANS1_TIME_REGEX = re.compile(r"^(\d+)([-+]\d\d)(\d\d)$")
_ASN1_TIME_REGEX = re.compile(r"^(\d+)([-+]\d\d)(\d\d)$")
class RunResult(object):
......@@ -2814,7 +2814,7 @@ def _ParseAsn1Generalizedtime(value):
@param value: ASN1 GENERALIZEDTIME timestamp
"""
m = _ANS1_TIME_REGEX.match(value)
m = _ASN1_TIME_REGEX.match(value)
if m:
# We have an offset
asn1time = m.group(1)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment