PEP8: fix E302: expected 2 blank lines, found 1
[metze/samba/wip.git] / python / samba / __init__.py
index f6fb58461a7b38f0d8b5fd4f7e68b4390963ffd6..90f85851256d2f0d5f51724e333d3af85f2479dd 100644 (file)
@@ -305,6 +305,8 @@ def setup_file(template, fname, subst_vars=None):
         f.close()
 
 MAX_NETBIOS_NAME_LEN = 15
+
+
 def is_valid_netbios_char(c):
     return (c.isalnum() or c in " !#$%&'()-.@^_{}~")
 
@@ -364,9 +366,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,6 +379,7 @@ 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)