[master 2/9] Get rid of all unused and wildcard imports.
clumens
installerbot-noreply at redhat.com
Fri Jul 17 13:50:07 UTC 2015
From: Chris Lumens <clumens at redhat.com>
---
meh/dump.py | 1 -
meh/handler.py | 4 +---
meh/ui/gui.py | 4 ++--
meh/ui/text.py | 4 ++--
tests/attrSkipList.py | 6 ++----
tests/baseclass.py | 3 +--
tests/handle_unicode.py | 1 -
7 files changed, 8 insertions(+), 15 deletions(-)
diff --git a/meh/dump.py b/meh/dump.py
index a018324..bf983b2 100644
--- a/meh/dump.py
+++ b/meh/dump.py
@@ -25,7 +25,6 @@
import inspect
import os
import traceback
-import types
import sys
import codecs
import six
diff --git a/meh/handler.py b/meh/handler.py
index 9363304..e143006 100644
--- a/meh/handler.py
+++ b/meh/handler.py
@@ -16,11 +16,9 @@
#
# Author(s): Chris Lumens <clumens at redhat.com>
#
-from meh import *
+from meh import MAIN_RESPONSE_DEBUG, MAIN_RESPONSE_SAVE, MAIN_RESPONSE_SHELL, MAIN_RESPONSE_QUIT, DumpInfo, ExceptionInfo
import bdb
import os
-from .network import hasActiveNetDev
-import signal
import sys
import report
import traceback
diff --git a/meh/ui/gui.py b/meh/ui/gui.py
index a7f3602..4941898 100644
--- a/meh/ui/gui.py
+++ b/meh/ui/gui.py
@@ -16,8 +16,8 @@
#
# Author(s): Chris Lumens <clumens at redhat.com>
#
-from meh import *
-from meh.ui import *
+from meh import MAIN_RESPONSE_DEBUG, MAIN_RESPONSE_NONE, MAIN_RESPONSE_QUIT, MAIN_RESPONSE_SAVE
+from meh.ui import AbstractIntf, AbstractSaveExceptionWindow, AbstractMainExceptionWindow, AbstractMessageWindow
import os
import sys
import report
diff --git a/meh/ui/text.py b/meh/ui/text.py
index 274b802..4d99190 100644
--- a/meh/ui/text.py
+++ b/meh/ui/text.py
@@ -19,8 +19,8 @@
#
from __future__ import print_function
-from meh import *
-from meh.ui import *
+from meh import MAIN_RESPONSE_DEBUG, MAIN_RESPONSE_SAVE, MAIN_RESPONSE_SHELL, MAIN_RESPONSE_QUIT
+from meh.ui import AbstractIntf, AbstractSaveExceptionWindow, AbstractMainExceptionWindow, AbstractMessageWindow
import report
import report.io.TextIO
from report import LIBREPORT_WAIT, LIBREPORT_RUN_CLI
diff --git a/tests/attrSkipList.py b/tests/attrSkipList.py
index d9fe567..b21c6d1 100644
--- a/tests/attrSkipList.py
+++ b/tests/attrSkipList.py
@@ -1,9 +1,7 @@
-import os
import unittest
-from tests.baseclass import *
+from tests.baseclass import BaseTestCase
-from meh.handler import *
-from meh.dump import *
+from meh import Config
class Example:
def __init__(self):
diff --git a/tests/baseclass.py b/tests/baseclass.py
index ced4518..25be349 100644
--- a/tests/baseclass.py
+++ b/tests/baseclass.py
@@ -7,8 +7,7 @@
import six
from meh import ExceptionInfo
-from meh.handler import *
-from meh.dump import *
+from meh.dump import ExceptionDump
class BaseTestCase(unittest.TestCase):
def dump(self, conf, obj):
diff --git a/tests/handle_unicode.py b/tests/handle_unicode.py
index 3ff4ca9..a4e88d0 100644
--- a/tests/handle_unicode.py
+++ b/tests/handle_unicode.py
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-
-import tempfile
import six
from tests.baseclass import BaseTestCase
--
To view this commit on github, visit https://github.com/rhinstaller/python-meh/commit/62a521e17e42d5e659363873e1174ff32e9fc85e
More information about the anaconda-patches
mailing list