On Thu, 2014-06-26 at 11:12 +0200, Martin Kolman wrote:
This gets rid of a import * of all constants from Pykickstart
in out constants module, which has a quite big potential for breakage.
Also split a long import line in packaging.
Signed-off-by: Martin Kolman <mkolman(a)redhat.com>
---
anaconda | 2 +-
pyanaconda/constants.py | 4 +---
pyanaconda/packaging/__init__.py | 4 +++-
pyanaconda/packaging/dnfpayload.py | 7 ++++---
4 files changed, 9 insertions(+), 8 deletions(-)
diff --git a/anaconda b/anaconda
index a725e09..027a55b 100755
--- a/anaconda
+++ b/anaconda
@@ -1095,7 +1095,7 @@ if __name__ == "__main__":
if anaconda.displayMode != 'g':
if not anaconda.ksdata.xconfig.startX:
anaconda.ksdata.skipx.skipx = True
- from pyanaconda.constants import DISPLAY_MODE_CMDLINE, DISPLAY_MODE_TEXT
+ from pykickstart.constants import DISPLAY_MODE_CMDLINE, DISPLAY_MODE_TEXT
Oh yeez. Thanks for this patch! Big ACK.
--
Vratislav Podzimek
Anaconda Rider | RHCE | Red Hat, Inc. | Brno - Czech Republic