summaryrefslogtreecommitdiffstats
path: root/src/tests/intg/util.py
diff options
context:
space:
mode:
authorMichal Židek <mzidek@redhat.com>2015-08-31 18:47:57 +0200
committerJakub Hrozek <jhrozek@redhat.com>2015-09-03 09:56:54 +0200
commit60713f738cedb6e4239604baf6619a0ca986fa49 (patch)
treea7848830bf6fdab2e2958bea63d915f53dffdcc0 /src/tests/intg/util.py
parent95b2c51771b8b4568e0996061e3819dd36188e22 (diff)
downloadsssd-60713f738cedb6e4239604baf6619a0ca986fa49.tar.gz
sssd-60713f738cedb6e4239604baf6619a0ca986fa49.tar.xz
sssd-60713f738cedb6e4239604baf6619a0ca986fa49.zip
intg: Fix some PEP 8 violations
Reviewed-by: Pavel Reichl <preichl@redhat.com>
Diffstat (limited to 'src/tests/intg/util.py')
-rw-r--r--src/tests/intg/util.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tests/intg/util.py b/src/tests/intg/util.py
index 5dd92b220..6e8f15d02 100644
--- a/src/tests/intg/util.py
+++ b/src/tests/intg/util.py
@@ -23,6 +23,7 @@ import subprocess
UNINDENT_RE = re.compile("^ +", re.MULTILINE)
+
def unindent(text):
"""
Unindent text by removing at most the number of spaces present in
@@ -35,6 +36,7 @@ def unindent(text):
return match.group()[indent_ref[0]:]
return UNINDENT_RE.sub(replace, text)
+
def run_shell():
"""
Execute an interactive shell under "screen", preserving environment.
@@ -48,6 +50,7 @@ def run_shell():
"bash -i"
])
+
def first_dir(*args):
"""Return first argument that points to an existing directory."""
for arg in args: