summaryrefslogtreecommitdiffstats
path: root/glucometerutils/common.py
diff options
context:
space:
mode:
Diffstat (limited to 'glucometerutils/common.py')
-rw-r--r--glucometerutils/common.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/glucometerutils/common.py b/glucometerutils/common.py
index 825dea1..38f735e 100644
--- a/glucometerutils/common.py
+++ b/glucometerutils/common.py
@@ -8,6 +8,8 @@ __license__ = 'MIT'
import collections
+from glucometerutils import exceptions
+
# Constants for units
UNIT_MGDL = 'mg/dL'
UNIT_MMOLL = 'mmol/L'
@@ -18,8 +20,6 @@ VALID_UNITS = [UNIT_MGDL, UNIT_MMOLL]
DATETIME_12HR = '12 hours'
DATETIME_24HR = '24 hours'
-from glucometerutils import exceptions
-
def convert_glucose_unit(value, from_unit, to_unit=None):
"""Convert the given value of glucose level between units.