FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu Kernel Team

 
 
LinkBack Thread Tools
 
Old 06-16-2010, 08:20 PM
David Cantrell
 
Default Remove reference to undefined variable (#604164)

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@redhat.com>
Red Hat / Honolulu, HI

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

Thread Tools




All times are GMT. The time now is 10:30 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org