mirror of
https://github.com/samba-team/samba.git
synced 2025-08-03 04:22:09 +03:00
PEP8: fix E401: multiple imports on one line
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:
@ -1,5 +1,8 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
import os, socket, sys, stat
|
import os
|
||||||
|
import socket
|
||||||
|
import sys
|
||||||
|
import stat
|
||||||
|
|
||||||
######################################################################
|
######################################################################
|
||||||
##
|
##
|
||||||
|
@ -23,7 +23,8 @@ from samba.ndr import ndr_unpack
|
|||||||
from samba import dsdb
|
from samba import dsdb
|
||||||
from samba import werror
|
from samba import werror
|
||||||
from samba import WERRORError
|
from samba import WERRORError
|
||||||
import samba, ldb
|
import samba
|
||||||
|
import ldb
|
||||||
from samba.dcerpc.drsuapi import DRSUAPI_ATTID_name
|
from samba.dcerpc.drsuapi import DRSUAPI_ATTID_name
|
||||||
import re
|
import re
|
||||||
|
|
||||||
|
@ -22,7 +22,10 @@ from __future__ import print_function
|
|||||||
from samba.auth import system_session
|
from samba.auth import system_session
|
||||||
from samba.samdb import SamDB
|
from samba.samdb import SamDB
|
||||||
from samba import gensec, Ldb, drs_utils, arcfour_encrypt, string_to_byte_array
|
from samba import gensec, Ldb, drs_utils, arcfour_encrypt, string_to_byte_array
|
||||||
import ldb, samba, sys, uuid
|
import ldb
|
||||||
|
import samba
|
||||||
|
import sys
|
||||||
|
import uuid
|
||||||
from samba.ndr import ndr_pack, ndr_unpack
|
from samba.ndr import ndr_pack, ndr_unpack
|
||||||
from samba.dcerpc import security, drsuapi, misc, nbt, lsa, drsblobs, dnsserver, dnsp
|
from samba.dcerpc import security, drsuapi, misc, nbt, lsa, drsblobs, dnsserver, dnsp
|
||||||
from samba.dsdb import DS_DOMAIN_FUNCTION_2003
|
from samba.dsdb import DS_DOMAIN_FUNCTION_2003
|
||||||
|
@ -16,11 +16,13 @@
|
|||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import optparse, samba
|
import optparse
|
||||||
|
import samba
|
||||||
from samba import getopt as options
|
from samba import getopt as options
|
||||||
from samba import colour
|
from samba import colour
|
||||||
from ldb import LdbError
|
from ldb import LdbError
|
||||||
import sys, traceback
|
import sys
|
||||||
|
import traceback
|
||||||
import textwrap
|
import textwrap
|
||||||
|
|
||||||
|
|
||||||
|
@ -16,7 +16,8 @@
|
|||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import ldb, sys
|
import ldb
|
||||||
|
import sys
|
||||||
import samba.getopt as options
|
import samba.getopt as options
|
||||||
from samba.auth import system_session
|
from samba.auth import system_session
|
||||||
from samba.samdb import SamDB
|
from samba.samdb import SamDB
|
||||||
|
@ -25,7 +25,9 @@ import tarfile
|
|||||||
import tempfile
|
import tempfile
|
||||||
import shutil
|
import shutil
|
||||||
|
|
||||||
import samba.xattr_native, samba.xattr_tdb, samba.posix_eadb
|
import samba.xattr_native
|
||||||
|
import samba.xattr_tdb
|
||||||
|
import samba.posix_eadb
|
||||||
from samba.samba3 import param as s3param
|
from samba.samba3 import param as s3param
|
||||||
from samba.dcerpc import security, xattr, idmap
|
from samba.dcerpc import security, xattr, idmap
|
||||||
from samba.ndr import ndr_pack, ndr_unpack
|
from samba.ndr import ndr_pack, ndr_unpack
|
||||||
|
@ -23,7 +23,8 @@ from samba.credentials import Credentials
|
|||||||
from samba.auth import system_session
|
from samba.auth import system_session
|
||||||
from samba.samdb import SamDB
|
from samba.samdb import SamDB
|
||||||
import ldb
|
import ldb
|
||||||
import shutil, os
|
import shutil
|
||||||
|
import os
|
||||||
|
|
||||||
|
|
||||||
class SambaDnsUpdateTests(samba.tests.BlackboxTestCase):
|
class SambaDnsUpdateTests(samba.tests.BlackboxTestCase):
|
||||||
|
@ -17,7 +17,8 @@
|
|||||||
|
|
||||||
"""Tests for samba.common"""
|
"""Tests for samba.common"""
|
||||||
|
|
||||||
import samba, os
|
import samba
|
||||||
|
import os
|
||||||
import samba.tests
|
import samba.tests
|
||||||
from samba.common import *
|
from samba.common import *
|
||||||
from samba.samdb import SamDB
|
from samba.samdb import SamDB
|
||||||
|
@ -16,7 +16,9 @@
|
|||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import os, sys, string
|
import os
|
||||||
|
import sys
|
||||||
|
import string
|
||||||
from samba.net import Net
|
from samba.net import Net
|
||||||
import samba.dckeytab
|
import samba.dckeytab
|
||||||
from samba import tests
|
from samba import tests
|
||||||
|
@ -15,7 +15,10 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
import samba, os, random, sys
|
import samba
|
||||||
|
import os
|
||||||
|
import random
|
||||||
|
import sys
|
||||||
from samba import netbios
|
from samba import netbios
|
||||||
|
|
||||||
|
|
||||||
|
@ -15,7 +15,8 @@
|
|||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import os, ldb
|
import os
|
||||||
|
import ldb
|
||||||
from samba.tests.samba_tool.base import SambaToolCmdTest
|
from samba.tests.samba_tool.base import SambaToolCmdTest
|
||||||
|
|
||||||
|
|
||||||
|
@ -15,7 +15,8 @@
|
|||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
import os, ldb
|
import os
|
||||||
|
import ldb
|
||||||
from samba.tests.samba_tool.base import SambaToolCmdTest
|
from samba.tests.samba_tool.base import SambaToolCmdTest
|
||||||
|
|
||||||
|
|
||||||
|
@ -15,7 +15,10 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
import samba, os, random, sys
|
import samba
|
||||||
|
import os
|
||||||
|
import random
|
||||||
|
import sys
|
||||||
from samba import smb
|
from samba import smb
|
||||||
|
|
||||||
PY3 = sys.version_info[0] == 3
|
PY3 = sys.version_info[0] == 3
|
||||||
|
@ -17,7 +17,9 @@
|
|||||||
|
|
||||||
"""Tests for samba.xattr_native and samba.xattr_tdb."""
|
"""Tests for samba.xattr_native and samba.xattr_tdb."""
|
||||||
|
|
||||||
import samba.xattr_native, samba.xattr_tdb, samba.posix_eadb
|
import samba.xattr_native
|
||||||
|
import samba.xattr_tdb
|
||||||
|
import samba.posix_eadb
|
||||||
from samba.xattr import copytree_with_xattrs
|
from samba.xattr import copytree_with_xattrs
|
||||||
from samba.dcerpc import xattr
|
from samba.dcerpc import xattr
|
||||||
from samba.ndr import ndr_pack
|
from samba.ndr import ndr_pack
|
||||||
|
@ -5,7 +5,10 @@
|
|||||||
|
|
||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
from subprocess import call, check_call, Popen, PIPE
|
from subprocess import call, check_call, Popen, PIPE
|
||||||
import os, tarfile, sys, time
|
import os
|
||||||
|
import tarfile
|
||||||
|
import sys
|
||||||
|
import time
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
import smtplib
|
import smtplib
|
||||||
import email
|
import email
|
||||||
|
@ -5,7 +5,9 @@
|
|||||||
|
|
||||||
|
|
||||||
from subprocess import call, check_call, Popen, PIPE
|
from subprocess import call, check_call, Popen, PIPE
|
||||||
import os, tempfile, sys
|
import os
|
||||||
|
import tempfile
|
||||||
|
import sys
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
|
|
||||||
parser = OptionParser()
|
parser = OptionParser()
|
||||||
|
@ -1,7 +1,9 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
|
||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
import sys, os, subprocess
|
import sys
|
||||||
|
import os
|
||||||
|
import subprocess
|
||||||
|
|
||||||
|
|
||||||
if len(sys.argv) != 3:
|
if len(sys.argv) != 3:
|
||||||
|
@ -18,7 +18,8 @@
|
|||||||
# three separated by newlines. All other lines in the output are considered
|
# three separated by newlines. All other lines in the output are considered
|
||||||
# comments.
|
# comments.
|
||||||
|
|
||||||
import os, sys
|
import os
|
||||||
|
import sys
|
||||||
sys.path.insert(0, os.path.normpath(os.path.join(os.path.dirname(__file__), "../../selftest")))
|
sys.path.insert(0, os.path.normpath(os.path.join(os.path.dirname(__file__), "../../selftest")))
|
||||||
import selftesthelpers
|
import selftesthelpers
|
||||||
from selftesthelpers import *
|
from selftesthelpers import *
|
||||||
|
@ -7,7 +7,8 @@
|
|||||||
# Command line stuff
|
# Command line stuff
|
||||||
|
|
||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
import sys, sre
|
import sys
|
||||||
|
import sre
|
||||||
|
|
||||||
if len(sys.argv) != 2:
|
if len(sys.argv) != 2:
|
||||||
print('Usage: depfilter.py NODE')
|
print('Usage: depfilter.py NODE')
|
||||||
|
@ -19,7 +19,8 @@
|
|||||||
# comments.
|
# comments.
|
||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
|
|
||||||
import os, sys
|
import os
|
||||||
|
import sys
|
||||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "../../selftest"))
|
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "../../selftest"))
|
||||||
import selftesthelpers
|
import selftesthelpers
|
||||||
from selftesthelpers import *
|
from selftesthelpers import *
|
||||||
|
@ -34,7 +34,8 @@ from ldb import (
|
|||||||
SCOPE_SUBTREE,
|
SCOPE_SUBTREE,
|
||||||
)
|
)
|
||||||
|
|
||||||
import drs_base, ldb
|
import drs_base
|
||||||
|
import ldb
|
||||||
|
|
||||||
|
|
||||||
class DrsDeleteObjectTestCase(drs_base.DrsBaseTestCase):
|
class DrsDeleteObjectTestCase(drs_base.DrsBaseTestCase):
|
||||||
|
@ -42,7 +42,8 @@ from ldb import (
|
|||||||
SCOPE_SUBTREE,
|
SCOPE_SUBTREE,
|
||||||
)
|
)
|
||||||
|
|
||||||
import drs_base, ldb
|
import drs_base
|
||||||
|
import ldb
|
||||||
from samba.dcerpc.drsuapi import *
|
from samba.dcerpc.drsuapi import *
|
||||||
|
|
||||||
|
|
||||||
|
@ -39,7 +39,9 @@ from samba.dcerpc import drsuapi, misc
|
|||||||
from samba.drs_utils import drs_DsBind
|
from samba.drs_utils import drs_DsBind
|
||||||
from samba.samdb import SamDB
|
from samba.samdb import SamDB
|
||||||
|
|
||||||
import shutil, tempfile, os
|
import shutil
|
||||||
|
import tempfile
|
||||||
|
import os
|
||||||
from samba.auth import system_session, admin_session
|
from samba.auth import system_session, admin_session
|
||||||
from samba.dbchecker import dbcheck
|
from samba.dbchecker import dbcheck
|
||||||
from samba.ndr import ndr_pack
|
from samba.ndr import ndr_pack
|
||||||
|
@ -2,7 +2,8 @@
|
|||||||
|
|
||||||
'''automated testing of Samba3 against windows'''
|
'''automated testing of Samba3 against windows'''
|
||||||
|
|
||||||
import sys, os
|
import sys
|
||||||
|
import os
|
||||||
import optparse
|
import optparse
|
||||||
import wintest
|
import wintest
|
||||||
|
|
||||||
|
@ -2,8 +2,12 @@
|
|||||||
|
|
||||||
'''automated testing of the steps of the Samba4 HOWTO'''
|
'''automated testing of the steps of the Samba4 HOWTO'''
|
||||||
|
|
||||||
import sys, os
|
import sys
|
||||||
import wintest, pexpect, time, subprocess
|
import os
|
||||||
|
import wintest
|
||||||
|
import pexpect
|
||||||
|
import time
|
||||||
|
import subprocess
|
||||||
|
|
||||||
|
|
||||||
def set_krb5_conf(t):
|
def set_krb5_conf(t):
|
||||||
|
@ -2,9 +2,13 @@
|
|||||||
|
|
||||||
'''automated testing library for testing Samba against windows'''
|
'''automated testing library for testing Samba against windows'''
|
||||||
|
|
||||||
import pexpect, subprocess
|
import pexpect
|
||||||
|
import subprocess
|
||||||
import optparse
|
import optparse
|
||||||
import sys, os, time, re
|
import sys
|
||||||
|
import os
|
||||||
|
import time
|
||||||
|
import re
|
||||||
|
|
||||||
|
|
||||||
class wintest():
|
class wintest():
|
||||||
|
Reference in New Issue
Block a user