aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2011-09-28 23:09:33 -0700
committerBen Pfaff <blp@nicira.com>2011-09-29 07:30:51 -0700
commite44a6fe503ad639787ec2f8d1ee0710e63dacd81 (patch)
tree592ca46f98b9304fe0af5e1e195367b34c7a196d
parent723a8d23f5d9ba07d67bf4d312b00f001db5bdb4 (diff)
ovs.daemon: Fix bug introduced by "pychecker" warning fixes.
Commit 591c20651f1 "daemon.py: Don't shadow built-in 'file' variable" changed most instances of "file" to "file_handle" but missed this one. I'm not certain that this solves a real problem, but it still seems wrong. Bug #7533.
-rw-r--r--python/ovs/daemon.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/ovs/daemon.py b/python/ovs/daemon.py
index a919c53e..5937877c 100644
--- a/python/ovs/daemon.py
+++ b/python/ovs/daemon.py
@@ -141,7 +141,7 @@ def _make_pidfile():
# This is global to keep Python from garbage-collecting and
# therefore closing our file after this function exits. That would
# unlock the lock for us, and we don't want that.
- global file
+ global file_handle
file_handle = open(tmpfile, "w")
except IOError, e: