From ba9ace946327c5b71cce5f71eb1fec542edcbe72 Mon Sep 17 00:00:00 2001
From: Phil <phil@secdev.org>
Date: Mon, 14 Dec 2009 13:17:31 +0100
Subject: [PATCH] Removed polluting temprary variables

---
 scapy/arch/linux.py | 6 +++---
 scapy/layers/all.py | 6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/scapy/arch/linux.py b/scapy/arch/linux.py
index b97548ee..4f5bb131 100644
--- a/scapy/arch/linux.py
+++ b/scapy/arch/linux.py
@@ -66,13 +66,13 @@ RTF_REJECT = 0x0200
 
 LOOPBACK_NAME="lo"
 
-with os.popen("tcpdump -V 2> /dev/null") as f:
-    if f.close() >> 8 == 0x7f:
+with os.popen("tcpdump -V 2> /dev/null") as _f:
+    if _f.close() >> 8 == 0x7f:
         log_loading.warning("Failed to execute tcpdump. Check it is installed and in the PATH")
         TCPDUMP=0
     else:
         TCPDUMP=1
-        
+del(_f)
     
 
 def get_if_raw_hwaddr(iff):
diff --git a/scapy/layers/all.py b/scapy/layers/all.py
index f6518cd3..6251c2a5 100644
--- a/scapy/layers/all.py
+++ b/scapy/layers/all.py
@@ -11,9 +11,9 @@ def _import_star(m):
     for k,v in mod.__dict__.iteritems():
         globals()[k] = v
 
-for l in conf.load_layers:
-    log_loading.debug("Loading layer %s" % l)
-    _import_star(l)
+for _l in conf.load_layers:
+    log_loading.debug("Loading layer %s" % _l)
+    _import_star(_l)
 
 
 
-- 
GitLab