diff options
author | Brian C. Lane <bcl@redhat.com> | 2010-09-07 16:17:54 -0700 |
---|---|---|
committer | Brian C. Lane <bcl@redhat.com> | 2010-09-10 10:46:31 -0700 |
commit | 8d2da78944dcff5f4ec3540f027c0cda3e124a4a (patch) | |
tree | bf91229348270e639ac3afa10e364d0c53a5426e /pyanaconda/flags.py | |
parent | 80d4b2d03e60c270432af5b18d4c4e909ba6be74 (diff) | |
download | anaconda-8d2da78944dcff5f4ec3540f027c0cda3e124a4a.tar.gz anaconda-8d2da78944dcff5f4ec3540f027c0cda3e124a4a.tar.xz anaconda-8d2da78944dcff5f4ec3540f027c0cda3e124a4a.zip |
Cleanup tabs in flags.py
Diffstat (limited to 'pyanaconda/flags.py')
-rw-r--r-- | pyanaconda/flags.py | 47 |
1 files changed, 23 insertions, 24 deletions
diff --git a/pyanaconda/flags.py b/pyanaconda/flags.py index 66864e7b4..79a5e6612 100644 --- a/pyanaconda/flags.py +++ b/pyanaconda/flags.py @@ -25,16 +25,15 @@ from constants import * class Flags: def __getattr__(self, attr): - if self.__dict__['flags'].has_key(attr): - return self.__dict__['flags'][attr] - - raise AttributeError, attr + if self.__dict__['flags'].has_key(attr): + return self.__dict__['flags'][attr] + raise AttributeError, attr def __setattr__(self, attr, val): - if self.__dict__['flags'].has_key(attr): - self.__dict__['flags'][attr] = val - else: - raise AttributeError, attr + if self.__dict__['flags'].has_key(attr): + self.__dict__['flags'][attr] = val + else: + raise AttributeError, attr def get(self, attr, val=None): if self.__dict__['flags'].has_key(attr): @@ -70,24 +69,24 @@ class Flags: and not self.__dict__['flags']['cmdline'].has_key("no" + flag) \ and self.__dict__['flags']['cmdline'][flag] != "0": self.__dict__['flags'][flag] = 1 - + def __init__(self): - self.__dict__['flags'] = {} - self.__dict__['flags']['test'] = 0 - self.__dict__['flags']['livecdInstall'] = 0 + self.__dict__['flags'] = {} + self.__dict__['flags']['test'] = 0 + self.__dict__['flags']['livecdInstall'] = 0 self.__dict__['flags']['dlabel'] = 0 - self.__dict__['flags']['ibft'] = 1 - self.__dict__['flags']['iscsi'] = 0 - self.__dict__['flags']['serial'] = 0 - self.__dict__['flags']['autostep'] = 0 - self.__dict__['flags']['autoscreenshot'] = 0 - self.__dict__['flags']['usevnc'] = 0 - self.__dict__['flags']['vncquestion'] = True + self.__dict__['flags']['ibft'] = 1 + self.__dict__['flags']['iscsi'] = 0 + self.__dict__['flags']['serial'] = 0 + self.__dict__['flags']['autostep'] = 0 + self.__dict__['flags']['autoscreenshot'] = 0 + self.__dict__['flags']['usevnc'] = 0 + self.__dict__['flags']['vncquestion'] = True self.__dict__['flags']['mpath'] = 1 - self.__dict__['flags']['dmraid'] = 1 - self.__dict__['flags']['selinux'] = SELINUX_DEFAULT + self.__dict__['flags']['dmraid'] = 1 + self.__dict__['flags']['selinux'] = SELINUX_DEFAULT self.__dict__['flags']['debug'] = 0 - self.__dict__['flags']['targetarch'] = None + self.__dict__['flags']['targetarch'] = None self.__dict__['flags']['cmdline'] = self.createCmdlineDict() self.__dict__['flags']['useIPv4'] = True self.__dict__['flags']['useIPv6'] = True @@ -113,11 +112,11 @@ class Flags: self.__dict__['flags']['debug'] = self.__dict__['flags']['cmdline']['debug'] if self.__dict__['flags']['cmdline'].has_key("rpmarch"): - self.__dict__['flags']['targetarch'] = self.__dict__['flags']['cmdline']['rpmarch'] + self.__dict__['flags']['targetarch'] = self.__dict__['flags']['cmdline']['rpmarch'] if not os.path.exists("/selinux/load"): self.__dict__['flags']['selinux'] = 0 - global flags flags = Flags() + |