mirror of
https://github.com/samba-team/samba.git
synced 2025-01-21 18:04:06 +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:
parent
4d529c400b
commit
95c36d825c
@ -1,5 +1,8 @@
|
||||
#!/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 werror
|
||||
from samba import WERRORError
|
||||
import samba, ldb
|
||||
import samba
|
||||
import ldb
|
||||
from samba.dcerpc.drsuapi import DRSUAPI_ATTID_name
|
||||
import re
|
||||
|
||||
|
@ -22,7 +22,10 @@ from __future__ import print_function
|
||||
from samba.auth import system_session
|
||||
from samba.samdb import SamDB
|
||||
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.dcerpc import security, drsuapi, misc, nbt, lsa, drsblobs, dnsserver, dnsp
|
||||
from samba.dsdb import DS_DOMAIN_FUNCTION_2003
|
||||
|
@ -16,11 +16,13 @@
|
||||
# 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 colour
|
||||
from ldb import LdbError
|
||||
import sys, traceback
|
||||
import sys
|
||||
import traceback
|
||||
import textwrap
|
||||
|
||||
|
||||
|
@ -16,7 +16,8 @@
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
|
||||
import ldb, sys
|
||||
import ldb
|
||||
import sys
|
||||
import samba.getopt as options
|
||||
from samba.auth import system_session
|
||||
from samba.samdb import SamDB
|
||||
|
@ -25,7 +25,9 @@ import tarfile
|
||||
import tempfile
|
||||
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.dcerpc import security, xattr, idmap
|
||||
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.samdb import SamDB
|
||||
import ldb
|
||||
import shutil, os
|
||||
import shutil
|
||||
import os
|
||||
|
||||
|
||||
class SambaDnsUpdateTests(samba.tests.BlackboxTestCase):
|
||||
|
@ -17,7 +17,8 @@
|
||||
|
||||
"""Tests for samba.common"""
|
||||
|
||||
import samba, os
|
||||
import samba
|
||||
import os
|
||||
import samba.tests
|
||||
from samba.common import *
|
||||
from samba.samdb import SamDB
|
||||
|
@ -16,7 +16,9 @@
|
||||
# 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
|
||||
import samba.dckeytab
|
||||
from samba import tests
|
||||
|
@ -15,7 +15,10 @@
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# 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
|
||||
|
||||
|
||||
|
@ -15,7 +15,8 @@
|
||||
# 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
|
||||
|
||||
|
||||
|
@ -15,7 +15,8 @@
|
||||
# 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
|
||||
|
||||
|
||||
|
@ -15,7 +15,10 @@
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# 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
|
||||
|
||||
PY3 = sys.version_info[0] == 3
|
||||
|
@ -17,7 +17,9 @@
|
||||
|
||||
"""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.dcerpc import xattr
|
||||
from samba.ndr import ndr_pack
|
||||
|
@ -5,7 +5,10 @@
|
||||
|
||||
from __future__ import print_function
|
||||
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
|
||||
import smtplib
|
||||
import email
|
||||
|
@ -5,7 +5,9 @@
|
||||
|
||||
|
||||
from subprocess import call, check_call, Popen, PIPE
|
||||
import os, tempfile, sys
|
||||
import os
|
||||
import tempfile
|
||||
import sys
|
||||
from optparse import OptionParser
|
||||
|
||||
parser = OptionParser()
|
||||
|
@ -1,7 +1,9 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
from __future__ import print_function
|
||||
import sys, os, subprocess
|
||||
import sys
|
||||
import os
|
||||
import subprocess
|
||||
|
||||
|
||||
if len(sys.argv) != 3:
|
||||
|
@ -18,7 +18,8 @@
|
||||
# three separated by newlines. All other lines in the output are considered
|
||||
# comments.
|
||||
|
||||
import os, sys
|
||||
import os
|
||||
import sys
|
||||
sys.path.insert(0, os.path.normpath(os.path.join(os.path.dirname(__file__), "../../selftest")))
|
||||
import selftesthelpers
|
||||
from selftesthelpers import *
|
||||
|
@ -7,7 +7,8 @@
|
||||
# Command line stuff
|
||||
|
||||
from __future__ import print_function
|
||||
import sys, sre
|
||||
import sys
|
||||
import sre
|
||||
|
||||
if len(sys.argv) != 2:
|
||||
print('Usage: depfilter.py NODE')
|
||||
|
@ -19,7 +19,8 @@
|
||||
# comments.
|
||||
from __future__ import print_function
|
||||
|
||||
import os, sys
|
||||
import os
|
||||
import sys
|
||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "../../selftest"))
|
||||
import selftesthelpers
|
||||
from selftesthelpers import *
|
||||
|
@ -34,7 +34,8 @@ from ldb import (
|
||||
SCOPE_SUBTREE,
|
||||
)
|
||||
|
||||
import drs_base, ldb
|
||||
import drs_base
|
||||
import ldb
|
||||
|
||||
|
||||
class DrsDeleteObjectTestCase(drs_base.DrsBaseTestCase):
|
||||
|
@ -42,7 +42,8 @@ from ldb import (
|
||||
SCOPE_SUBTREE,
|
||||
)
|
||||
|
||||
import drs_base, ldb
|
||||
import drs_base
|
||||
import ldb
|
||||
from samba.dcerpc.drsuapi import *
|
||||
|
||||
|
||||
|
@ -39,7 +39,9 @@ from samba.dcerpc import drsuapi, misc
|
||||
from samba.drs_utils import drs_DsBind
|
||||
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.dbchecker import dbcheck
|
||||
from samba.ndr import ndr_pack
|
||||
|
@ -2,7 +2,8 @@
|
||||
|
||||
'''automated testing of Samba3 against windows'''
|
||||
|
||||
import sys, os
|
||||
import sys
|
||||
import os
|
||||
import optparse
|
||||
import wintest
|
||||
|
||||
|
@ -2,8 +2,12 @@
|
||||
|
||||
'''automated testing of the steps of the Samba4 HOWTO'''
|
||||
|
||||
import sys, os
|
||||
import wintest, pexpect, time, subprocess
|
||||
import sys
|
||||
import os
|
||||
import wintest
|
||||
import pexpect
|
||||
import time
|
||||
import subprocess
|
||||
|
||||
|
||||
def set_krb5_conf(t):
|
||||
|
@ -2,9 +2,13 @@
|
||||
|
||||
'''automated testing library for testing Samba against windows'''
|
||||
|
||||
import pexpect, subprocess
|
||||
import pexpect
|
||||
import subprocess
|
||||
import optparse
|
||||
import sys, os, time, re
|
||||
import sys
|
||||
import os
|
||||
import time
|
||||
import re
|
||||
|
||||
|
||||
class wintest():
|
||||
|
Loading…
x
Reference in New Issue
Block a user