From ca7c6e4eaf2540021cf2ac4513dd5388759bc89d Mon Sep 17 00:00:00 2001 From: ljf Date: Wed, 8 Feb 2017 16:06:52 +0100 Subject: [PATCH] [fix] Pep8 --- moulinette/utils/filesystem.py | 4 ++-- moulinette/utils/process.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/moulinette/utils/filesystem.py b/moulinette/utils/filesystem.py index 54eb3e08..343ce952 100644 --- a/moulinette/utils/filesystem.py +++ b/moulinette/utils/filesystem.py @@ -101,9 +101,9 @@ def chmod(path, mode, fmode=None, recursive=False): fmode = mode for root, dirs, files in os.walk(path): for d in dirs: - os.chmod(os.path.join(root,d), mode) + os.chmod(os.path.join(root, d), mode) for f in files: - os.chmod(os.path.join(root,f), fmode) + os.chmod(os.path.join(root, f), fmode) def rm(path, recursive=False, force=False): diff --git a/moulinette/utils/process.py b/moulinette/utils/process.py index 5867d613..c34d6fab 100644 --- a/moulinette/utils/process.py +++ b/moulinette/utils/process.py @@ -8,9 +8,9 @@ try: from pipes import quote # Python2 & Python3 <= 3.2 except ImportError: from shlex import quote # Python3 >= 3.3 -quote # This line is here to avoid W0611 PEP8 error (see comments above) from .stream import async_file_reading +quote # This line is here to avoid W0611 PEP8 error (see comments above) # Prevent to import subprocess only for common classes CalledProcessError = subprocess.CalledProcessError