Skip to content

Commit

Permalink
Fix datetime import ambiguity
Browse files Browse the repository at this point in the history
  • Loading branch information
amotl committed Aug 14, 2023
1 parent 23c3764 commit 6c32425
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions kotori/io/protocol/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
from datetime import timedelta, datetime

import arrow
import datetime

from arrow.parser import DateTimeParser
from six import text_type
Expand Down Expand Up @@ -123,7 +122,7 @@ def convert_floats(data, integers=None):
delete_keys = []
for key, value in data.items():
try:
if isinstance(value, datetime.datetime):
if isinstance(value, datetime):
continue
if is_number(value):
if key in integers:
Expand Down

0 comments on commit 6c32425

Please sign in to comment.