]> granicus.if.org Git - python/commitdiff
Use multi-line import
authorAndrew M. Kuchling <amk@amk.ca>
Tue, 31 Aug 2004 11:38:12 +0000 (11:38 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Tue, 31 Aug 2004 11:38:12 +0000 (11:38 +0000)
Lib/DocXMLRPCServer.py
Lib/_LWPCookieJar.py
Lib/_MozillaCookieJar.py
Lib/os.py
Lib/test/test_optparse.py
Lib/urllib2.py
Lib/weakref.py

index b900c5fc5ded5f1b510ae4cae4b610c8970e0f60..20958b26ef68c992906de3af46e0d6850a88bc74 100644 (file)
@@ -16,10 +16,10 @@ import types
 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"""
index 2eb83a6351e8e0a2c0e4a1b9b5745439ee376725..2c8d4564e0b3cb6cb2f880df1271f2e965663586 100644 (file)
@@ -12,9 +12,9 @@ libwww-perl, I hope.
 """
 
 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.
index 761a8793986f4b71e255059273d16cd59f060507..6d8df0d94a2fb23af40955d0a1ebbdf2e5b37b80 100644 (file)
@@ -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):
     """
index 22f25a3cb4f5bf53c81d2d956d227b26bdc4de0b..6af4841414df51a37ce8baff1e0188b66c54b4d2 100644 (file)
--- a/Lib/os.py
+++ b/Lib/os.py
@@ -130,8 +130,8 @@ else:
     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
 
index 254d1b4dc4b12502049a79dc70fa9ccedd09153a..172cca968ef08afc05962146f35ca8229ce78038 100644 (file)
@@ -17,10 +17,10 @@ from cStringIO import StringIO
 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):
index d93cba62d8eef1e2d9d71d35a28425ff508e28a1..f1c94e11107e9acb1ceb6c371c020468a9385ea6 100644 (file)
@@ -114,9 +114,9 @@ except ImportError:
     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
index 77a41b109c96822c2f0917e85e04e53e59847b67..c0669b03173e5ec46f3e318ca23431c40308d703 100644 (file)
@@ -11,14 +11,14 @@ http://python.sourceforge.net/peps/pep-0205.html
 
 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