Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
33ad28b6
Commit
33ad28b6
authored
Aug 31, 2004
by
Andrew M. Kuchling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use multi-line import
parent
3294e9d2
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
26 additions
and
26 deletions
+26
-26
Lib/DocXMLRPCServer.py
Lib/DocXMLRPCServer.py
+4
-4
Lib/_LWPCookieJar.py
Lib/_LWPCookieJar.py
+3
-3
Lib/_MozillaCookieJar.py
Lib/_MozillaCookieJar.py
+2
-2
Lib/os.py
Lib/os.py
+2
-2
Lib/test/test_optparse.py
Lib/test/test_optparse.py
+4
-4
Lib/urllib2.py
Lib/urllib2.py
+3
-3
Lib/weakref.py
Lib/weakref.py
+8
-8
No files found.
Lib/DocXMLRPCServer.py
View file @
33ad28b6
...
...
@@ -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"""
...
...
Lib/_LWPCookieJar.py
View file @
33ad28b6
...
...
@@ -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.
...
...
Lib/_MozillaCookieJar.py
View file @
33ad28b6
...
...
@@ -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
):
"""
...
...
Lib/os.py
View file @
33ad28b6
...
...
@@ -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
...
...
Lib/test/test_optparse.py
View file @
33ad28b6
...
...
@@ -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
):
...
...
Lib/urllib2.py
View file @
33ad28b6
...
...
@@ -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
...
...
Lib/weakref.py
View file @
33ad28b6
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment