aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test/file.py
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2016-10-10 11:14:25 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2016-10-10 11:14:25 +0300
commit8e52a404f9a99f93d57f8600b20d92519be66181 (patch)
tree19ac2ad0d36cdc139dbac3551b88c42da883e368 /test/file.py
parentREADME updates (diff)
downloadaes-tools-8e52a404f9a99f93d57f8600b20d92519be66181.tar.gz
aes-tools-8e52a404f9a99f93d57f8600b20d92519be66181.zip
test: fix Pylint warnings
Diffstat (limited to '')
-rw-r--r--test/file.py14
1 files changed, 7 insertions, 7 deletions
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)