mirror of
https://github.com/python/cpython.git
synced 2025-08-23 02:04:56 +00:00
SF patch #834015: Remove imports of unused modules
(Contributed by George Yoshida.)
This commit is contained in:
parent
dc113a8a06
commit
cc523fc53d
5 changed files with 8 additions and 13 deletions
|
@ -104,7 +104,6 @@ from xmlrpclib import Fault
|
||||||
import SocketServer
|
import SocketServer
|
||||||
import BaseHTTPServer
|
import BaseHTTPServer
|
||||||
import sys
|
import sys
|
||||||
import types
|
|
||||||
import os
|
import os
|
||||||
|
|
||||||
def resolve_dotted_attribute(obj, attr):
|
def resolve_dotted_attribute(obj, attr):
|
||||||
|
|
|
@ -1082,7 +1082,6 @@ def _sys_version():
|
||||||
|
|
||||||
"""
|
"""
|
||||||
global _sys_version_cache
|
global _sys_version_cache
|
||||||
import time
|
|
||||||
|
|
||||||
if _sys_version_cache is not None:
|
if _sys_version_cache is not None:
|
||||||
return _sys_version_cache
|
return _sys_version_cache
|
||||||
|
|
|
@ -10,7 +10,6 @@ Some of this can actually be useful on non-Posix systems too, e.g.
|
||||||
for manipulation of the pathname component of URLs.
|
for manipulation of the pathname component of URLs.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import sys
|
|
||||||
import os
|
import os
|
||||||
import stat
|
import stat
|
||||||
|
|
||||||
|
|
|
@ -46,7 +46,6 @@ Sample use, programmatically
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import linecache
|
import linecache
|
||||||
import marshal
|
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
import sys
|
import sys
|
||||||
|
|
|
@ -1071,7 +1071,6 @@ def loads(data):
|
||||||
If the XML-RPC packet represents a fault condition, this function
|
If the XML-RPC packet represents a fault condition, this function
|
||||||
raises a Fault exception.
|
raises a Fault exception.
|
||||||
"""
|
"""
|
||||||
import sys
|
|
||||||
p, u = getparser()
|
p, u = getparser()
|
||||||
p.feed(data)
|
p.feed(data)
|
||||||
p.close()
|
p.close()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue