Re: [PATCH rhel6-branch] Remove reference to undefined variable (#604164)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ack.

On Tue, 15 Jun 2010, Radek Vykydal wrote:

pylint says:
E0602:591:Network.write: Undefined variable 'instPath'

The variable is a leftover of porting from master. Respective
code path is dead now, and it would be replaced by wireless
support patches when/if they are ported from master.
Just make pylint happy.
---
network.py |    2 --
1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/network.py b/network.py
index 392ead3..8fb843e 100644
--- a/network.py
+++ b/network.py
@@ -589,8 +589,6 @@ class Network:
            # handle the keys* files if we have those
            if dev.get("KEY"):
                cfgfile = "%s/keys-%s" % (netscriptsDir, device,)
-                if not instPath == '' and os.path.isfile(cfgfile):
-                    continue

                newkey = "%s/keys-%s.new" % (netscriptsDir, device,)
                f = open(newkey, "w")


--
David Cantrell <dcantrell@xxxxxxxxxx>
Red Hat / Honolulu, HI

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux