Skip to content

Commit 33ad28b

Browse files
committed
Use multi-line import
1 parent 3294e9d commit 33ad28b

File tree

7 files changed

+26
-26
lines changed

7 files changed

+26
-26
lines changed

Lib/DocXMLRPCServer.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616
import re
1717
import sys
1818

19-
from SimpleXMLRPCServer import SimpleXMLRPCServer,\
20-
SimpleXMLRPCRequestHandler,\
21-
CGIXMLRPCRequestHandler,\
22-
resolve_dotted_attribute
19+
from SimpleXMLRPCServer import (SimpleXMLRPCServer,
20+
SimpleXMLRPCRequestHandler,
21+
CGIXMLRPCRequestHandler,
22+
resolve_dotted_attribute)
2323

2424
class ServerHTMLDoc(pydoc.HTMLDoc):
2525
"""Class used to generate pydoc HTML document for a server"""

Lib/_LWPCookieJar.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
"""
1313

1414
import time, re, logging
15-
from cookielib import reraise_unmasked_exceptions, FileCookieJar, Cookie, \
16-
MISSING_FILENAME_TEXT, join_header_words, split_header_words, \
17-
iso2time, time2isoz
15+
from cookielib import (reraise_unmasked_exceptions, FileCookieJar, Cookie,
16+
MISSING_FILENAME_TEXT, join_header_words, split_header_words,
17+
iso2time, time2isoz)
1818

1919
def lwp_cookie_str(cookie):
2020
"""Return string representation of Cookie in an the LWP cookie file format.

Lib/_MozillaCookieJar.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
import re, time, logging
44

5-
from cookielib import reraise_unmasked_exceptions, FileCookieJar, Cookie, \
6-
MISSING_FILENAME_TEXT
5+
from cookielib import (reraise_unmasked_exceptions, FileCookieJar, Cookie,
6+
MISSING_FILENAME_TEXT)
77

88
class MozillaCookieJar(FileCookieJar):
99
"""

Lib/os.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@ def _get_exports_list(module):
130130
raise ImportError, 'no os specific module found'
131131

132132
sys.modules['os.path'] = path
133-
from os.path import curdir, pardir, sep, pathsep, defpath, extsep, altsep, \
134-
devnull
133+
from os.path import (curdir, pardir, sep, pathsep, defpath, extsep, altsep,
134+
devnull)
135135

136136
del _names
137137

Lib/test/test_optparse.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717
from pprint import pprint
1818
from test import test_support
1919

20-
from optparse import make_option, Option, IndentedHelpFormatter, \
21-
TitledHelpFormatter, OptionParser, OptionContainer, OptionGroup, \
22-
SUPPRESS_HELP, SUPPRESS_USAGE, OptionError, OptionConflictError, \
23-
BadOptionError, OptionValueError, _match_abbrev
20+
from optparse import (make_option, Option, IndentedHelpFormatter,
21+
TitledHelpFormatter, OptionParser, OptionContainer, OptionGroup,
22+
SUPPRESS_HELP, SUPPRESS_USAGE, OptionError, OptionConflictError,
23+
BadOptionError, OptionValueError, _match_abbrev)
2424

2525
class BaseTest(unittest.TestCase):
2626
def assertParseOK(self, args, expected_opts, expected_positional_args):

Lib/urllib2.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,9 @@
114114
from StringIO import StringIO
115115

116116
# not sure how many of these need to be gotten rid of
117-
from urllib import unwrap, unquote, splittype, splithost, \
118-
addinfourl, splitport, splitgophertype, splitquery, \
119-
splitattr, ftpwrapper, noheaders, splituser, splitpasswd, splitvalue
117+
from urllib import (unwrap, unquote, splittype, splithost,
118+
addinfourl, splitport, splitgophertype, splitquery,
119+
splitattr, ftpwrapper, noheaders, splituser, splitpasswd, splitvalue)
120120

121121
# support for FileHandler, proxies via environment variables
122122
from urllib import localhost, url2pathname, getproxies

Lib/weakref.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111

1212
import UserDict
1313

14-
from _weakref import \
15-
getweakrefcount, \
16-
getweakrefs, \
17-
ref, \
18-
proxy, \
19-
CallableProxyType, \
20-
ProxyType, \
21-
ReferenceType
14+
from _weakref import (
15+
getweakrefcount,
16+
getweakrefs,
17+
ref,
18+
proxy,
19+
CallableProxyType,
20+
ProxyType,
21+
ReferenceType)
2222

2323
from exceptions import ReferenceError
2424

0 commit comments

Comments
 (0)