Browse Source

Merge pull request #530 from hansmi/fix-typo

Fix typo in comment
TW 9 năm trước cách đây
mục cha
commit
267347ad3f
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      borg/helpers.py

+ 1 - 1
borg/helpers.py

@@ -229,7 +229,7 @@ def to_localtime(ts):
 
 
 def parse_timestamp(timestamp):
 def parse_timestamp(timestamp):
     """Parse a ISO 8601 timestamp string"""
     """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)
         return datetime.strptime(timestamp, '%Y-%m-%dT%H:%M:%S.%f').replace(tzinfo=timezone.utc)
     else:
     else:
         return datetime.strptime(timestamp, '%Y-%m-%dT%H:%M:%S').replace(tzinfo=timezone.utc)
         return datetime.strptime(timestamp, '%Y-%m-%dT%H:%M:%S').replace(tzinfo=timezone.utc)