Skip to content

Commit

Permalink
Fixed import for Python3
Browse files Browse the repository at this point in the history
  • Loading branch information
rsiera committed Dec 5, 2016
1 parent 3cabb1b commit 1afd06c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pg_view/helpers.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 1afd06c

Please sign in to comment.