pylint R1704(redefined-argument-from-local)

This commit is contained in:
Carlos Meza 2018-02-25 08:20:13 +00:00
parent 4d5732dbd7
commit 05abccda0b
2 changed files with 4 additions and 4 deletions

View file

@ -62,8 +62,8 @@ class QEMUVolume(LoopbackVolume):
def _module_param(self, module, param):
import os.path
param_path = os.path.join('/sys/module', module, 'parameters', param)
with open(param_path) as param:
return param.read().strip()
with open(param_path) as param_file:
return param_file.read().strip()
# From http://lists.gnu.org/archive/html/qemu-devel/2011-11/msg02201.html
# Apparently it's not in the current qemu-nbd shipped with wheezy

View file

@ -4,6 +4,6 @@
def recursive_glob(path, pattern):
import fnmatch
import os
for path, dirnames, filenames in os.walk(path):
for root, dirnames, filenames in os.walk(path):
for filename in fnmatch.filter(filenames, pattern):
yield os.path.join(path, filename)
yield os.path.join(root, filename)