diff --git a/pg_view/helpers.py b/pg_view/helpers.py index 445da53..0926226 100644 --- a/pg_view/helpers.py +++ b/pg_view/helpers.py @@ -1,9 +1,14 @@ -import ConfigParser import subprocess +import sys from pg_view import consts from pg_view.exceptions import InvalidConnectionParamError +if sys.hexversion >= 0x03000000: + import configparser as ConfigParser +else: + import ConfigParser + BYTES_IN_MB = 1048576 SECTORS_IN_MB = 2048 KB_IN_MB = 1024