Skip to content

Commit 988be1a

Browse files
committed
Fix a small import related bug.
1 parent a48a22a commit 988be1a

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

sc2reader/objects.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from __future__ import absolute_import
22

33
from collections import defaultdict, namedtuple
4-
import datetime
54

65
from sc2reader.constants import *
76
from sc2reader.data import GameObject, ABILITIES

sc2reader/processors.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from __future__ import absolute_import
22

3-
import datetime
3+
from datetime import datetime
44

55
from collections import defaultdict
66

@@ -25,8 +25,8 @@ def Full(replay):
2525
replay.map = replay.raw.details.map
2626
replay.file_time = replay.raw.details.file_time
2727
replay.unix_timestamp = windows_to_unix(replay.file_time)
28-
replay.date = datetime.datetime.fromtimestamp(replay.unix_timestamp)
29-
replay.utc_date = datetime.datetime.utcfromtimestamp(replay.unix_timestamp)
28+
replay.date = datetime.fromtimestamp(replay.unix_timestamp)
29+
replay.utc_date = datetime.utcfromtimestamp(replay.unix_timestamp)
3030

3131
if 'attributes_events' in replay.raw:
3232
# Organize the attribute data to be useful

0 commit comments

Comments
 (0)