PEP8: add spaces after operators
[nivanova/samba-autobuild/.git] / python / samba / __init__.py
index f6fb58461a7b38f0d8b5fd4f7e68b4390963ffd6..291ef541189891d55dd3fe9ff86a001ee9f738a6 100644 (file)
@@ -304,7 +304,10 @@ def setup_file(template, fname, subst_vars=None):
     finally:
         f.close()
 
+
 MAX_NETBIOS_NAME_LEN = 15
+
+
 def is_valid_netbios_char(c):
     return (c.isalnum() or c in " !#$%&'()-.@^_{}~")
 
@@ -337,7 +340,7 @@ def import_bundled_package(modulename, location, source_tree_container,
     if in_source_tree():
         extra_path = os.path.join(source_tree_topdir(), source_tree_container,
                                   location)
-        if not extra_path in sys.path:
+        if extra_path not in sys.path:
             sys.path.insert(0, extra_path)
         sys.modules[modulename] = __import__(modulename)
     else:
@@ -364,9 +367,11 @@ def dn_from_dns_name(dnsdomain):
     """return a DN from a DNS name domain/forest root"""
     return "DC=" + ",DC=".join(dnsdomain.split("."))
 
+
 def current_unix_time():
     return int(time.time())
 
+
 def string_to_byte_array(string):
     blob = [0] * len(string)
 
@@ -375,10 +380,12 @@ def string_to_byte_array(string):
 
     return blob
 
+
 def arcfour_encrypt(key, data):
     from samba.crypto import arcfour_crypt_blob
     return arcfour_crypt_blob(data, key)
 
+
 version = _glue.version
 interface_ips = _glue.interface_ips
 fault_setup = _glue.fault_setup