mirror of
https://github.com/samba-team/samba.git
synced 2025-08-02 00:22:11 +03:00
PEP8: fix E302: expected 2 blank lines, found 1
Signed-off-by: Joe Guo <joeg@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
This commit is contained in:
@ -21,6 +21,7 @@ from __future__ import print_function
|
||||
|
||||
import re
|
||||
|
||||
|
||||
def __read_folded_line(f, buffer):
|
||||
"""Read a line from an LDIF file, unfolding it"""
|
||||
line = buffer
|
||||
@ -57,6 +58,7 @@ def __read_folded_line(f, buffer):
|
||||
# Will not match options after the attribute type.
|
||||
attr_type_re = re.compile("^([A-Za-z][A-Za-z0-9-]*):")
|
||||
|
||||
|
||||
def __read_raw_entries(f):
|
||||
"""Read an LDIF entry, only unfolding lines"""
|
||||
|
||||
@ -91,6 +93,7 @@ def __read_raw_entries(f):
|
||||
if l == "":
|
||||
break
|
||||
|
||||
|
||||
def fix_dn(dn):
|
||||
"""Fix a string DN to use ${CONFIGDN}"""
|
||||
|
||||
@ -100,6 +103,7 @@ def fix_dn(dn):
|
||||
else:
|
||||
return dn
|
||||
|
||||
|
||||
def __write_ldif_one(entry):
|
||||
"""Write out entry as LDIF"""
|
||||
out = []
|
||||
@ -113,6 +117,7 @@ def __write_ldif_one(entry):
|
||||
|
||||
return "\n".join(out)
|
||||
|
||||
|
||||
def __transform_entry(entry):
|
||||
"""Perform required transformations to the Microsoft-provided LDIF"""
|
||||
|
||||
@ -164,6 +169,7 @@ def __transform_entry(entry):
|
||||
|
||||
return entry
|
||||
|
||||
|
||||
def read_ms_ldif(filename):
|
||||
"""Read and transform Microsoft-provided LDIF file."""
|
||||
|
||||
|
Reference in New Issue
Block a user