From f394c0de07a4b8c21658cf2c0d6c84d874ebc791 Mon Sep 17 00:00:00 2001 From: Iustin Pop <iustin@google.com> Date: Sun, 28 Nov 2010 14:47:41 +0000 Subject: [PATCH] Fix typo in _ANS1_TIME_REGEX Thanks Balasz! Signed-off-by: Iustin Pop <iustin@google.com> Reviewed-by: Michael Hanselmann <hansmi@google.com> --- lib/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/utils.py b/lib/utils.py index 50b9f6513..4c95cbd02 100644 --- a/lib/utils.py +++ b/lib/utils.py @@ -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) -- GitLab