Fix more pep8 issues in code I touched recently.
authorJelmer Vernooij <jelmer@samba.org>
Mon, 2 Jun 2014 00:53:01 +0000 (02:53 +0200)
committerKarolin Seeger <kseeger@samba.org>
Tue, 27 Jan 2015 10:02:15 +0000 (11:02 +0100)
Signed-Off-By: Jelmer Vernooij <jelmer@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Change-Id: I35f3204bdf5d00b3280d703427ded2fa2163a6f7

(similar to commit 0c2408531709eb720a2e96f72afbc2ecbfe6b06d)
This only backports the buildtools/wafsamba/ changes

buildtools/wafsamba/samba3.py
buildtools/wafsamba/wafsamba.py

index 571954de169fa80b5a4755bf513dbe5fcb72c01d..ffe678416edfb457a92b200530c9b3c2bc7193e0 100644 (file)
@@ -6,16 +6,17 @@ from optparse import SUPPRESS_HELP
 from samba_utils import os_path_relpath, TO_LIST
 from samba_autoconf import library_flags
 
+
 def SAMBA3_ADD_OPTION(opt, option, help=(), dest=None, default=True,
                       with_name="with", without_name="without"):
     if default is None:
-        default_str="auto"
+        default_str = "auto"
     elif default is True:
-        default_str="yes"
+        default_str = "yes"
     elif default is False:
-        default_str="no"
+        default_str = "no"
     else:
-        default_str=str(default)
+        default_str = str(default)
 
     if help == ():
         help = ("Build with %s support (default=%s)" % (option, default_str))
index 128dff386eb170e073641101164b5786f5c2e071..30fbf13da6c267058ff50decf53ab8f26e9988a6 100644 (file)
@@ -730,7 +730,8 @@ sys.path.insert(1, "%s")""" % (task.env["PYTHONARCHDIR"], task.env["PYTHONDIR"])
     lineno = 0
     for line in source_file:
         newline = line
-        if lineno == 0 and task.env["PYTHON_SPECIFIED"] is True and line[:2] == "#!":
+        if (lineno == 0 and task.env["PYTHON_SPECIFIED"] is True and
+                line[:2] == "#!"):
             newline = replacement_shebang
         elif pattern in line:
             newline = line.replace(pattern, replacement)