mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-22 09:50:37 +00:00
pylint R1704(redefined-argument-from-local)
This commit is contained in:
parent
4d5732dbd7
commit
05abccda0b
2 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue