2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 06:15:47 +00:00

ovs.daemon: Fix bug introduced by "pychecker" warning fixes.

Commit 591c20651f "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.
This commit is contained in:
Ben Pfaff
2011-09-28 23:09:33 -07:00
parent 723a8d23f5
commit e44a6fe503

View File

@@ -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: