summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xwhatmaps/command.py7
-rw-r--r--whatmaps/debiandistro.py1
-rw-r--r--whatmaps/redhatdistro.py1
3 files changed, 4 insertions, 5 deletions
diff --git a/whatmaps/command.py b/whatmaps/command.py
index 2593398..e02b176 100755
--- a/whatmaps/command.py
+++ b/whatmaps/command.py
@@ -18,11 +18,12 @@
from __future__ import print_function
+import errno
import glob
import os
import logging
+import subprocess
import sys
-import errno
from optparse import OptionParser
try:
import lsb_release
@@ -32,9 +33,7 @@ except ImportError:
from . process import Process
from . debiandistro import DebianDistro
from . redhatdistro import FedoraDistro
-from . pkg import Pkg, PkgError
-from . debianpkg import DebianPkg
-from . rpmpkg import RpmPkg
+from . pkg import PkgError
def check_maps(procs, shared_objects):
diff --git a/whatmaps/debiandistro.py b/whatmaps/debiandistro.py
index 3a47d50..af95bc2 100644
--- a/whatmaps/debiandistro.py
+++ b/whatmaps/debiandistro.py
@@ -29,6 +29,7 @@ import logging
import os
import subprocess
import sys
+import string
from . distro import Distro
from . debianpkg import DebianPkg
diff --git a/whatmaps/redhatdistro.py b/whatmaps/redhatdistro.py
index 4d9f5cf..9300648 100644
--- a/whatmaps/redhatdistro.py
+++ b/whatmaps/redhatdistro.py
@@ -20,7 +20,6 @@ import re
import subprocess
from . distro import Distro
-from . pkg import PkgError
from . rpmpkg import RpmPkg
class RedHatDistro(Distro):