summaryrefslogtreecommitdiffstats
path: root/glucometerutils/drivers/freestyle_optium.py
diff options
context:
space:
mode:
Diffstat (limited to 'glucometerutils/drivers/freestyle_optium.py')
-rw-r--r--glucometerutils/drivers/freestyle_optium.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/glucometerutils/drivers/freestyle_optium.py b/glucometerutils/drivers/freestyle_optium.py
index cbf171e..659c9c3 100644
--- a/glucometerutils/drivers/freestyle_optium.py
+++ b/glucometerutils/drivers/freestyle_optium.py
@@ -74,7 +74,7 @@ def _parse_clock(datestr):
month = _MONTH_MATCHES[match.group('month')]
year = int(match.group('year'))
- hour, minute, second = (int(part) for part in match.group('time').split(':'))
+ hour, minute, second = map(match.group('time').split(':'), int)
return datetime.datetime(year, month, day, hour, minute, second)
@@ -264,7 +264,7 @@ class Device(object):
month = _MONTH_MATCHES[match.group('month')]
year = int(match.group('year'))
- hour, minute = (int(part) for part in match.group('time').split(':'))
+ hour, minute = map(match.group('time').split(':'), int)
timestamp = datetime.datetime(year, month, day, hour, minute)