2
0
mirror of https://github.com/openvswitch/ovs synced 2025-10-25 15:07:05 +00:00

python: Avoid shadowing standard or global names.

Found by pychecker.
This commit is contained in:
Ben Pfaff
2011-08-24 17:12:53 -07:00
parent 28c781df8a
commit 9b46cccc33
6 changed files with 25 additions and 25 deletions

View File

@@ -68,8 +68,8 @@ def unlink_file_now(file):
return error
def _unlink_files():
for file in _files:
_unlink(file)
for file_ in _files:
_unlink(file_)
def _cancel_files():
global _added_hook
@@ -77,9 +77,9 @@ def _cancel_files():
_added_hook = False
_files = {}
def _unlink(file):
def _unlink(file_):
try:
os.unlink(file)
os.unlink(file_)
return 0
except OSError, e:
return e.errno