From 8e52a404f9a99f93d57f8600b20d92519be66181 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 10 Oct 2016 11:14:25 +0300 Subject: test: fix Pylint warnings --- test/file.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'test/file.py') diff --git a/test/file.py b/test/file.py index 6953d49..d6d691a 100644 --- a/test/file.py +++ b/test/file.py @@ -27,15 +27,15 @@ _PLAIN_EXT = 'plain' _CIPHER_EXT = 'cipher' def _list_dirs(root_path): - for fp in os.listdir(root_path): - fp = os.path.join(root_path, fp) - if os.path.isdir(fp): - yield fp + for path in os.listdir(root_path): + path = os.path.join(root_path, path) + if os.path.isdir(path): + yield path def _list_files(root_path, ext): - for fp in glob(os.path.join(root_path, '*.{}'.format(ext))): - if os.path.isfile(fp): - yield fp + for path in glob(os.path.join(root_path, '*.{}'.format(ext))): + if os.path.isfile(path): + yield path def _list_keys(root_path): return _list_files(root_path, _KEY_EXT) -- cgit v1.2.3