summaryrefslogtreecommitdiff
path: root/src/leap
diff options
context:
space:
mode:
authorkali <kali@leap.se>2012-09-12 08:58:20 +0900
committerkali <kali@leap.se>2012-09-12 08:58:20 +0900
commit8b353443d6e4523d9d95cba190daaec564838e72 (patch)
treeb4ff16371698749882dce1408744b2a72fb435e9 /src/leap
parentf3b601cb525b2884e7a48c7bfc41b4aef915adf7 (diff)
close fd. with breaks with StringIO passed in tests.
Diffstat (limited to 'src/leap')
-rw-r--r--src/leap/eip/checks.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/leap/eip/checks.py b/src/leap/eip/checks.py
index 24e97335..4dd4a95c 100644
--- a/src/leap/eip/checks.py
+++ b/src/leap/eip/checks.py
@@ -84,8 +84,9 @@ class LeapNetworkChecker(object):
if not platform.system() == "Linux":
raise NotImplementedError
- with open("/proc/net/route") as f:
- route_table = f.readlines()
+ f = open("/proc/net/route")
+ route_table = f.readlines()
+ f.close()
#toss out header
route_table.pop(0)
@@ -395,7 +396,6 @@ class EIPConfigChecker(object):
# We should WRITE eip config if missing or
# incomplete at this point
-
#
# private helpers
#