mirror of
https://github.com/python/cpython
synced 2024-07-21 10:15:53 +00:00
Use multi-line import
This commit is contained in:
parent
3294e9d2e7
commit
33ad28b68d
|
@ -16,10 +16,10 @@
|
|||
import re
|
||||
import sys
|
||||
|
||||
from SimpleXMLRPCServer import SimpleXMLRPCServer,\
|
||||
SimpleXMLRPCRequestHandler,\
|
||||
CGIXMLRPCRequestHandler,\
|
||||
resolve_dotted_attribute
|
||||
from SimpleXMLRPCServer import (SimpleXMLRPCServer,
|
||||
SimpleXMLRPCRequestHandler,
|
||||
CGIXMLRPCRequestHandler,
|
||||
resolve_dotted_attribute)
|
||||
|
||||
class ServerHTMLDoc(pydoc.HTMLDoc):
|
||||
"""Class used to generate pydoc HTML document for a server"""
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
"""
|
||||
|
||||
import time, re, logging
|
||||
from cookielib import reraise_unmasked_exceptions, FileCookieJar, Cookie, \
|
||||
MISSING_FILENAME_TEXT, join_header_words, split_header_words, \
|
||||
iso2time, time2isoz
|
||||
from cookielib import (reraise_unmasked_exceptions, FileCookieJar, Cookie,
|
||||
MISSING_FILENAME_TEXT, join_header_words, split_header_words,
|
||||
iso2time, time2isoz)
|
||||
|
||||
def lwp_cookie_str(cookie):
|
||||
"""Return string representation of Cookie in an the LWP cookie file format.
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
import re, time, logging
|
||||
|
||||
from cookielib import reraise_unmasked_exceptions, FileCookieJar, Cookie, \
|
||||
MISSING_FILENAME_TEXT
|
||||
from cookielib import (reraise_unmasked_exceptions, FileCookieJar, Cookie,
|
||||
MISSING_FILENAME_TEXT)
|
||||
|
||||
class MozillaCookieJar(FileCookieJar):
|
||||
"""
|
||||
|
|
|
@ -130,8 +130,8 @@ def _get_exports_list(module):
|
|||
raise ImportError, 'no os specific module found'
|
||||
|
||||
sys.modules['os.path'] = path
|
||||
from os.path import curdir, pardir, sep, pathsep, defpath, extsep, altsep, \
|
||||
devnull
|
||||
from os.path import (curdir, pardir, sep, pathsep, defpath, extsep, altsep,
|
||||
devnull)
|
||||
|
||||
del _names
|
||||
|
||||
|
|
|
@ -17,10 +17,10 @@
|
|||
from pprint import pprint
|
||||
from test import test_support
|
||||
|
||||
from optparse import make_option, Option, IndentedHelpFormatter, \
|
||||
TitledHelpFormatter, OptionParser, OptionContainer, OptionGroup, \
|
||||
SUPPRESS_HELP, SUPPRESS_USAGE, OptionError, OptionConflictError, \
|
||||
BadOptionError, OptionValueError, _match_abbrev
|
||||
from optparse import (make_option, Option, IndentedHelpFormatter,
|
||||
TitledHelpFormatter, OptionParser, OptionContainer, OptionGroup,
|
||||
SUPPRESS_HELP, SUPPRESS_USAGE, OptionError, OptionConflictError,
|
||||
BadOptionError, OptionValueError, _match_abbrev)
|
||||
|
||||
class BaseTest(unittest.TestCase):
|
||||
def assertParseOK(self, args, expected_opts, expected_positional_args):
|
||||
|
|
|
@ -114,9 +114,9 @@
|
|||
from StringIO import StringIO
|
||||
|
||||
# not sure how many of these need to be gotten rid of
|
||||
from urllib import unwrap, unquote, splittype, splithost, \
|
||||
addinfourl, splitport, splitgophertype, splitquery, \
|
||||
splitattr, ftpwrapper, noheaders, splituser, splitpasswd, splitvalue
|
||||
from urllib import (unwrap, unquote, splittype, splithost,
|
||||
addinfourl, splitport, splitgophertype, splitquery,
|
||||
splitattr, ftpwrapper, noheaders, splituser, splitpasswd, splitvalue)
|
||||
|
||||
# support for FileHandler, proxies via environment variables
|
||||
from urllib import localhost, url2pathname, getproxies
|
||||
|
|
|
@ -11,14 +11,14 @@
|
|||
|
||||
import UserDict
|
||||
|
||||
from _weakref import \
|
||||
getweakrefcount, \
|
||||
getweakrefs, \
|
||||
ref, \
|
||||
proxy, \
|
||||
CallableProxyType, \
|
||||
ProxyType, \
|
||||
ReferenceType
|
||||
from _weakref import (
|
||||
getweakrefcount,
|
||||
getweakrefs,
|
||||
ref,
|
||||
proxy,
|
||||
CallableProxyType,
|
||||
ProxyType,
|
||||
ReferenceType)
|
||||
|
||||
from exceptions import ReferenceError
|
||||
|
||||
|
|
Loading…
Reference in a new issue