mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
[fix] Pep8
This commit is contained in:
parent
9bcee881eb
commit
ca7c6e4eaf
2 changed files with 3 additions and 3 deletions
|
@ -101,9 +101,9 @@ def chmod(path, mode, fmode=None, recursive=False):
|
||||||
fmode = mode
|
fmode = mode
|
||||||
for root, dirs, files in os.walk(path):
|
for root, dirs, files in os.walk(path):
|
||||||
for d in dirs:
|
for d in dirs:
|
||||||
os.chmod(os.path.join(root,d), mode)
|
os.chmod(os.path.join(root, d), mode)
|
||||||
for f in files:
|
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):
|
def rm(path, recursive=False, force=False):
|
||||||
|
|
|
@ -8,9 +8,9 @@ try:
|
||||||
from pipes import quote # Python2 & Python3 <= 3.2
|
from pipes import quote # Python2 & Python3 <= 3.2
|
||||||
except ImportError:
|
except ImportError:
|
||||||
from shlex import quote # Python3 >= 3.3
|
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
|
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
|
# Prevent to import subprocess only for common classes
|
||||||
CalledProcessError = subprocess.CalledProcessError
|
CalledProcessError = subprocess.CalledProcessError
|
||||||
|
|
Loading…
Add table
Reference in a new issue