From d668901df4491d148daf6a7aa0cea3eac194a248 Mon Sep 17 00:00:00 2001 From: Michael Hanselmann Date: Thu, 7 Jan 2016 11:05:28 +0100 Subject: [PATCH] Fix typo in comment --- borg/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/borg/helpers.py b/borg/helpers.py index 8e76c3621..7f20a102e 100644 --- a/borg/helpers.py +++ b/borg/helpers.py @@ -229,7 +229,7 @@ def to_localtime(ts): def parse_timestamp(timestamp): """Parse a ISO 8601 timestamp string""" - if '.' in timestamp: # microseconds might not be pressent + if '.' in timestamp: # microseconds might not be present return datetime.strptime(timestamp, '%Y-%m-%dT%H:%M:%S.%f').replace(tzinfo=timezone.utc) else: return datetime.strptime(timestamp, '%Y-%m-%dT%H:%M:%S').replace(tzinfo=timezone.utc)