diff --git a/pasn1.py b/pasn1.py index 69d1b86..2ece814 100644 --- a/pasn1.py +++ b/pasn1.py @@ -373,7 +373,7 @@ class ASN1Coder(object): raise ValueError('last character must be Z') # Real bug is in strptime, but work around it here. - if ' ' in data: + if ' ' in ts: raise ValueError('no spaces are allowed') if '.' in ts: @@ -601,6 +601,7 @@ class TestCode(unittest.TestCase): set(), set((1,2,3)), set((1,'sjlfdkj', None, float('inf'))), datetime.datetime.utcnow(), + [ datetime.datetime.utcnow(), ' ' ], datetime.datetime.utcnow().replace(microsecond=0), datetime.datetime.utcnow().replace(microsecond=1000), ]: