Patch #2167 from calvin: Remove unused imports
This commit is contained in:
parent
19aff0c90a
commit
c5f05e45cf
|
@ -14,7 +14,6 @@ import os
|
||||||
import posixpath
|
import posixpath
|
||||||
import BaseHTTPServer
|
import BaseHTTPServer
|
||||||
import urllib
|
import urllib
|
||||||
import urlparse
|
|
||||||
import cgi
|
import cgi
|
||||||
import shutil
|
import shutil
|
||||||
import mimetypes
|
import mimetypes
|
||||||
|
|
|
@ -4,7 +4,6 @@ various DB flags, etc.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
|
||||||
import errno
|
import errno
|
||||||
import shutil
|
import shutil
|
||||||
import string
|
import string
|
||||||
|
|
|
@ -3,7 +3,7 @@ Test cases adapted from the test_bsddb.py module in Python's
|
||||||
regression test suite.
|
regression test suite.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import sys, os, string
|
import os, string
|
||||||
import unittest
|
import unittest
|
||||||
import tempfile
|
import tempfile
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import unittest
|
import unittest
|
||||||
import tempfile
|
import tempfile
|
||||||
import sys, os, glob
|
import os, glob
|
||||||
|
|
||||||
try:
|
try:
|
||||||
# For Pythons w/distutils pybsddb
|
# For Pythons w/distutils pybsddb
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
|
|
||||||
import sys, os, string
|
import os, string
|
||||||
import unittest
|
import unittest
|
||||||
import glob
|
import glob
|
||||||
import tempfile
|
import tempfile
|
||||||
|
|
|
@ -2,9 +2,8 @@
|
||||||
TestCases for checking dbShelve objects.
|
TestCases for checking dbShelve objects.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import sys, os, string
|
import os, string
|
||||||
import tempfile, random
|
import tempfile, random
|
||||||
from pprint import pprint
|
|
||||||
from types import *
|
from types import *
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
#
|
#
|
||||||
# $Id$
|
# $Id$
|
||||||
|
|
||||||
import sys, os, re
|
import os, re
|
||||||
import tempfile
|
import tempfile
|
||||||
import shutil
|
import shutil
|
||||||
try:
|
try:
|
||||||
|
|
|
@ -3,7 +3,6 @@ is closed before its DB objects.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
|
||||||
import tempfile
|
import tempfile
|
||||||
import glob
|
import glob
|
||||||
import unittest
|
import unittest
|
||||||
|
|
|
@ -2,9 +2,8 @@
|
||||||
TestCases for checking set_get_returns_none.
|
TestCases for checking set_get_returns_none.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import sys, os, string
|
import os, string
|
||||||
import tempfile
|
import tempfile
|
||||||
from pprint import pprint
|
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
|
@ -1,10 +1,8 @@
|
||||||
"""TestCases for using the DB.join and DBCursor.join_item methods.
|
"""TestCases for using the DB.join and DBCursor.join_item methods.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import sys, os, string
|
import os
|
||||||
import tempfile
|
import tempfile
|
||||||
import time
|
|
||||||
from pprint import pprint
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from threading import Thread, currentThread
|
from threading import Thread, currentThread
|
||||||
|
|
|
@ -2,10 +2,7 @@
|
||||||
TestCases for testing the locking sub-system.
|
TestCases for testing the locking sub-system.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import os
|
|
||||||
from pprint import pprint
|
|
||||||
import shutil
|
import shutil
|
||||||
import sys
|
|
||||||
import tempfile
|
import tempfile
|
||||||
import time
|
import time
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
|
||||||
import unittest
|
import unittest
|
||||||
import tempfile
|
import tempfile
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
|
|
||||||
import sys, os, string
|
import os
|
||||||
import pickle
|
import pickle
|
||||||
try:
|
try:
|
||||||
import cPickle
|
import cPickle
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
TestCases for exercising a Queue DB.
|
TestCases for exercising a Queue DB.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import sys, os, string
|
import os, string
|
||||||
import tempfile
|
import tempfile
|
||||||
from pprint import pprint
|
from pprint import pprint
|
||||||
import unittest
|
import unittest
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
|
||||||
import errno
|
import errno
|
||||||
import tempfile
|
import tempfile
|
||||||
from pprint import pprint
|
from pprint import pprint
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import unittest
|
import unittest
|
||||||
import os
|
import os
|
||||||
import sys
|
|
||||||
import tempfile
|
import tempfile
|
||||||
import glob
|
import glob
|
||||||
|
|
||||||
|
@ -10,8 +9,6 @@ try:
|
||||||
except ImportError:
|
except ImportError:
|
||||||
from bsddb import db
|
from bsddb import db
|
||||||
|
|
||||||
from test_all import verbose
|
|
||||||
|
|
||||||
|
|
||||||
class DBSequenceTest(unittest.TestCase):
|
class DBSequenceTest(unittest.TestCase):
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
|
|
|
@ -7,7 +7,6 @@ import time
|
||||||
import errno
|
import errno
|
||||||
import shutil
|
import shutil
|
||||||
import tempfile
|
import tempfile
|
||||||
from pprint import pprint
|
|
||||||
from random import random
|
from random import random
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
|
@ -29,7 +29,6 @@ from compiler.ast import *
|
||||||
import parser
|
import parser
|
||||||
import symbol
|
import symbol
|
||||||
import token
|
import token
|
||||||
import sys
|
|
||||||
|
|
||||||
class WalkerError(StandardError):
|
class WalkerError(StandardError):
|
||||||
pass
|
pass
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import glob, os, sys, unittest, getopt, time
|
import os, sys, unittest, getopt, time
|
||||||
|
|
||||||
use_resources = []
|
use_resources = []
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import unittest
|
import unittest
|
||||||
import sys
|
|
||||||
|
|
||||||
from ctypes import *
|
from ctypes import *
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import unittest
|
import unittest
|
||||||
import os, sys
|
import sys
|
||||||
from ctypes import *
|
from ctypes import *
|
||||||
from ctypes.util import find_library
|
from ctypes.util import find_library
|
||||||
from ctypes.test import is_resource_enabled
|
from ctypes.test import is_resource_enabled
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
import sys, os
|
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
from ctypes import *
|
from ctypes import *
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
from ctypes import *
|
from ctypes import *
|
||||||
import sys, unittest
|
import sys, unittest
|
||||||
import os, StringIO
|
import os
|
||||||
from ctypes.util import find_library
|
from ctypes.util import find_library
|
||||||
from ctypes.test import is_resource_enabled
|
from ctypes.test import is_resource_enabled
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
from ctypes import *
|
from ctypes import *
|
||||||
import unittest
|
import unittest
|
||||||
import sys, struct
|
import struct
|
||||||
|
|
||||||
def valid_ranges(*types):
|
def valid_ranges(*types):
|
||||||
# given a sequence of numeric types, collect their _type_
|
# given a sequence of numeric types, collect their _type_
|
||||||
|
|
|
@ -7,7 +7,7 @@ to a sane state so you can read the resulting traceback.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import sys, curses
|
import curses
|
||||||
|
|
||||||
def wrapper(func, *args, **kwds):
|
def wrapper(func, *args, **kwds):
|
||||||
"""Wrapper function that initializes curses and calls another function,
|
"""Wrapper function that initializes curses and calls another function,
|
||||||
|
|
|
@ -16,7 +16,7 @@ for the Borland C++ compiler.
|
||||||
__revision__ = "$Id$"
|
__revision__ = "$Id$"
|
||||||
|
|
||||||
|
|
||||||
import sys, os
|
import os
|
||||||
from distutils.errors import \
|
from distutils.errors import \
|
||||||
DistutilsExecError, DistutilsPlatformError, \
|
DistutilsExecError, DistutilsPlatformError, \
|
||||||
CompileError, LibError, LinkError, UnknownFileError
|
CompileError, LibError, LinkError, UnknownFileError
|
||||||
|
|
|
@ -7,7 +7,7 @@ distribution)."""
|
||||||
|
|
||||||
__revision__ = "$Id$"
|
__revision__ = "$Id$"
|
||||||
|
|
||||||
import os, string
|
import os
|
||||||
from types import *
|
from types import *
|
||||||
from distutils.core import Command
|
from distutils.core import Command
|
||||||
from distutils.errors import *
|
from distutils.errors import *
|
||||||
|
|
|
@ -11,7 +11,7 @@ __revision__ = "$Id$"
|
||||||
import os
|
import os
|
||||||
from distutils.core import Command
|
from distutils.core import Command
|
||||||
from distutils.util import get_platform
|
from distutils.util import get_platform
|
||||||
from distutils.dir_util import create_tree, remove_tree, ensure_relative
|
from distutils.dir_util import remove_tree, ensure_relative
|
||||||
from distutils.errors import *
|
from distutils.errors import *
|
||||||
from distutils.sysconfig import get_python_version
|
from distutils.sysconfig import get_python_version
|
||||||
from distutils import log
|
from distutils import log
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
Implements the bdist_msi command.
|
Implements the bdist_msi command.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import sys, os, string
|
import sys, os
|
||||||
from distutils.core import Command
|
from distutils.core import Command
|
||||||
from distutils.util import get_platform
|
from distutils.util import get_platform
|
||||||
from distutils.dir_util import remove_tree
|
from distutils.dir_util import remove_tree
|
||||||
|
|
|
@ -8,7 +8,6 @@ distributions)."""
|
||||||
__revision__ = "$Id$"
|
__revision__ = "$Id$"
|
||||||
|
|
||||||
import sys, os, string
|
import sys, os, string
|
||||||
import glob
|
|
||||||
from types import *
|
from types import *
|
||||||
from distutils.core import Command
|
from distutils.core import Command
|
||||||
from distutils.debug import DEBUG
|
from distutils.debug import DEBUG
|
||||||
|
|
|
@ -6,7 +6,7 @@ Implements the Distutils 'build_py' command."""
|
||||||
|
|
||||||
__revision__ = "$Id$"
|
__revision__ = "$Id$"
|
||||||
|
|
||||||
import sys, string, os
|
import string, os
|
||||||
from types import *
|
from types import *
|
||||||
from glob import glob
|
from glob import glob
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ Implements the Distutils 'build_scripts' command."""
|
||||||
|
|
||||||
__revision__ = "$Id$"
|
__revision__ = "$Id$"
|
||||||
|
|
||||||
import sys, os, re
|
import os, re
|
||||||
from stat import ST_MODE
|
from stat import ST_MODE
|
||||||
from distutils import sysconfig
|
from distutils import sysconfig
|
||||||
from distutils.core import Command
|
from distutils.core import Command
|
||||||
|
|
|
@ -17,7 +17,6 @@ from distutils.errors import DistutilsPlatformError
|
||||||
from distutils.file_util import write_file
|
from distutils.file_util import write_file
|
||||||
from distutils.util import convert_path, subst_vars, change_root
|
from distutils.util import convert_path, subst_vars, change_root
|
||||||
from distutils.errors import DistutilsOptionError
|
from distutils.errors import DistutilsOptionError
|
||||||
from glob import glob
|
|
||||||
|
|
||||||
if sys.version < "2.2":
|
if sys.version < "2.2":
|
||||||
WINDOWS_SCHEME = {
|
WINDOWS_SCHEME = {
|
||||||
|
|
|
@ -7,7 +7,6 @@ files to the Python include directory."""
|
||||||
|
|
||||||
__revision__ = "$Id$"
|
__revision__ = "$Id$"
|
||||||
|
|
||||||
import os
|
|
||||||
from distutils.core import Command
|
from distutils.core import Command
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
__revision__ = "$Id$"
|
__revision__ = "$Id$"
|
||||||
|
|
||||||
import sys, os, string
|
import os
|
||||||
from types import IntType
|
from types import IntType
|
||||||
from distutils.core import Command
|
from distutils.core import Command
|
||||||
from distutils.errors import DistutilsOptionError
|
from distutils.errors import DistutilsOptionError
|
||||||
|
|
|
@ -7,7 +7,7 @@ Implements the Distutils 'register' command (register with the repository).
|
||||||
|
|
||||||
__revision__ = "$Id$"
|
__revision__ = "$Id$"
|
||||||
|
|
||||||
import sys, os, string, urllib2, getpass, urlparse
|
import os, string, urllib2, getpass, urlparse
|
||||||
import StringIO, ConfigParser
|
import StringIO, ConfigParser
|
||||||
|
|
||||||
from distutils.core import Command
|
from distutils.core import Command
|
||||||
|
|
|
@ -6,7 +6,7 @@ Implements the Distutils 'sdist' command (create a source distribution)."""
|
||||||
|
|
||||||
__revision__ = "$Id$"
|
__revision__ = "$Id$"
|
||||||
|
|
||||||
import sys, os, string
|
import os, string
|
||||||
from types import *
|
from types import *
|
||||||
from glob import glob
|
from glob import glob
|
||||||
from distutils.core import Command
|
from distutils.core import Command
|
||||||
|
|
|
@ -11,7 +11,6 @@ __revision__ = "$Id$"
|
||||||
import os, string, re
|
import os, string, re
|
||||||
import fnmatch
|
import fnmatch
|
||||||
from types import *
|
from types import *
|
||||||
from glob import glob
|
|
||||||
from distutils.util import convert_path
|
from distutils.util import convert_path
|
||||||
from distutils.errors import DistutilsTemplateError, DistutilsInternalError
|
from distutils.errors import DistutilsTemplateError, DistutilsInternalError
|
||||||
from distutils import log
|
from distutils import log
|
||||||
|
|
|
@ -3,10 +3,8 @@
|
||||||
import distutils.cmd
|
import distutils.cmd
|
||||||
import distutils.dist
|
import distutils.dist
|
||||||
import os
|
import os
|
||||||
import shutil
|
|
||||||
import StringIO
|
import StringIO
|
||||||
import sys
|
import sys
|
||||||
import tempfile
|
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
from test.test_support import TESTFN
|
from test.test_support import TESTFN
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
|
|
||||||
from distutils import sysconfig
|
from distutils import sysconfig
|
||||||
import os
|
import os
|
||||||
import sys
|
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
from test.test_support import TESTFN
|
from test.test_support import TESTFN
|
||||||
|
|
|
@ -17,7 +17,6 @@ __revision__ = "$Id$"
|
||||||
|
|
||||||
import os, sys
|
import os, sys
|
||||||
from types import StringType, NoneType
|
from types import StringType, NoneType
|
||||||
from copy import copy
|
|
||||||
|
|
||||||
from distutils import sysconfig
|
from distutils import sysconfig
|
||||||
from distutils.dep_util import newer
|
from distutils.dep_util import newer
|
||||||
|
|
|
@ -35,7 +35,6 @@ __all__ = [
|
||||||
'header_encode',
|
'header_encode',
|
||||||
]
|
]
|
||||||
|
|
||||||
import re
|
|
||||||
|
|
||||||
from binascii import b2a_base64, a2b_base64
|
from binascii import b2a_base64, a2b_base64
|
||||||
from email.utils import fix_eols
|
from email.utils import fix_eols
|
||||||
|
|
|
@ -27,7 +27,6 @@ import random
|
||||||
import socket
|
import socket
|
||||||
import urllib
|
import urllib
|
||||||
import warnings
|
import warnings
|
||||||
from cStringIO import StringIO
|
|
||||||
|
|
||||||
from email._parseaddr import quote
|
from email._parseaddr import quote
|
||||||
from email._parseaddr import AddressList as _AddressList
|
from email._parseaddr import AddressList as _AddressList
|
||||||
|
|
|
@ -2,7 +2,6 @@ import _hotshot
|
||||||
import os.path
|
import os.path
|
||||||
import parser
|
import parser
|
||||||
import symbol
|
import symbol
|
||||||
import sys
|
|
||||||
|
|
||||||
from _hotshot import \
|
from _hotshot import \
|
||||||
WHAT_ENTER, \
|
WHAT_ENTER, \
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
import errno
|
import errno
|
||||||
import hotshot
|
import hotshot
|
||||||
import hotshot.stats
|
import hotshot.stats
|
||||||
import os
|
|
||||||
import sys
|
import sys
|
||||||
import test.pystone
|
import test.pystone
|
||||||
|
|
||||||
|
|
|
@ -66,7 +66,6 @@ Req-started-unread-response _CS_REQ_STARTED <response_class>
|
||||||
Req-sent-unread-response _CS_REQ_SENT <response_class>
|
Req-sent-unread-response _CS_REQ_SENT <response_class>
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import errno
|
|
||||||
import mimetools
|
import mimetools
|
||||||
import socket
|
import socket
|
||||||
from urlparse import urlsplit
|
from urlparse import urlsplit
|
||||||
|
|
|
@ -30,7 +30,6 @@ Each function will be called at most once for each event.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import os
|
|
||||||
import string
|
import string
|
||||||
import re
|
import re
|
||||||
import Tkinter
|
import Tkinter
|
||||||
|
|
|
@ -20,7 +20,6 @@ barrier, in particular frame and traceback objects.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import sys
|
|
||||||
import types
|
import types
|
||||||
import rpc
|
import rpc
|
||||||
import Debugger
|
import Debugger
|
||||||
|
|
|
@ -15,7 +15,6 @@
|
||||||
# - optimize tree redraw after expand of subnode
|
# - optimize tree redraw after expand of subnode
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
|
||||||
from Tkinter import *
|
from Tkinter import *
|
||||||
import imp
|
import imp
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
import sys
|
|
||||||
import string
|
import string
|
||||||
from Tkinter import *
|
from Tkinter import *
|
||||||
from Delegator import Delegator
|
from Delegator import Delegator
|
||||||
|
|
|
@ -11,7 +11,7 @@ Refer to comments in EditorWindow autoindent code for details.
|
||||||
"""
|
"""
|
||||||
from Tkinter import *
|
from Tkinter import *
|
||||||
import tkMessageBox, tkColorChooser, tkFont
|
import tkMessageBox, tkColorChooser, tkFont
|
||||||
import string, copy
|
import string
|
||||||
|
|
||||||
from configHandler import idleConf
|
from configHandler import idleConf
|
||||||
from dynOptionMenuWidget import DynOptionMenu
|
from dynOptionMenuWidget import DynOptionMenu
|
||||||
|
|
|
@ -3,7 +3,7 @@ Dialog for building Tkinter accelerator key bindings
|
||||||
"""
|
"""
|
||||||
from Tkinter import *
|
from Tkinter import *
|
||||||
import tkMessageBox
|
import tkMessageBox
|
||||||
import string, os
|
import string
|
||||||
|
|
||||||
class GetKeysDialog(Toplevel):
|
class GetKeysDialog(Toplevel):
|
||||||
def __init__(self,parent,title,action,currentKeySequences):
|
def __init__(self,parent,title,action,currentKeySequences):
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import sys
|
import sys
|
||||||
import os
|
|
||||||
import linecache
|
import linecache
|
||||||
import time
|
import time
|
||||||
import socket
|
import socket
|
||||||
|
|
|
@ -26,7 +26,6 @@ askstring -- get a string from the user
|
||||||
'''
|
'''
|
||||||
|
|
||||||
from Tkinter import *
|
from Tkinter import *
|
||||||
import os
|
|
||||||
|
|
||||||
class Dialog(Toplevel):
|
class Dialog(Toplevel):
|
||||||
|
|
||||||
|
|
|
@ -27,7 +27,7 @@ Copyright (C) 2001-2007 Vinay Sajip. All Rights Reserved.
|
||||||
To use, simply 'import logging' and log away!
|
To use, simply 'import logging' and log away!
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import sys, logging, socket, types, os, string, cPickle, struct, time, glob
|
import logging, socket, types, os, string, cPickle, struct, time, glob
|
||||||
from stat import ST_DEV, ST_INO
|
from stat import ST_DEV, ST_INO
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
|
@ -6,8 +6,8 @@ module as os.path.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import stat
|
|
||||||
import sys
|
import sys
|
||||||
|
import stat
|
||||||
import genericpath
|
import genericpath
|
||||||
from genericpath import *
|
from genericpath import *
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,6 @@ There are two classes:
|
||||||
only suitable for the simplest of AppleEvent servers.
|
only suitable for the simplest of AppleEvent servers.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import sys
|
|
||||||
import traceback
|
import traceback
|
||||||
import MacOS
|
import MacOS
|
||||||
from Carbon import AE
|
from Carbon import AE
|
||||||
|
|
|
@ -13,18 +13,14 @@ coerce(x, wanted_sample) coerces a python object to another python object
|
||||||
#
|
#
|
||||||
|
|
||||||
import struct
|
import struct
|
||||||
import string
|
|
||||||
import types
|
import types
|
||||||
from string import strip
|
|
||||||
from types import *
|
from types import *
|
||||||
from Carbon import AE
|
from Carbon import AE
|
||||||
from Carbon.AppleEvents import *
|
from Carbon.AppleEvents import *
|
||||||
import MacOS
|
import MacOS
|
||||||
import Carbon.File
|
import Carbon.File
|
||||||
import StringIO
|
|
||||||
import aetypes
|
import aetypes
|
||||||
from aetypes import mkenum, ObjectSpecifier
|
from aetypes import mkenum, ObjectSpecifier
|
||||||
import os
|
|
||||||
|
|
||||||
# These ones seem to be missing from AppleEvents
|
# These ones seem to be missing from AppleEvents
|
||||||
# (they're in AERegistry.h)
|
# (they're in AERegistry.h)
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
# but mac-style for MacPython, whether running on OS9 or OSX.
|
# but mac-style for MacPython, whether running on OS9 or OSX.
|
||||||
#
|
#
|
||||||
|
|
||||||
import sys, os
|
import os
|
||||||
|
|
||||||
Error = "bgenlocations.Error"
|
Error = "bgenlocations.Error"
|
||||||
#
|
#
|
||||||
|
|
|
@ -7,9 +7,7 @@ copy(src, dst) - Full copy of 'src' to 'dst'
|
||||||
from Carbon import Res
|
from Carbon import Res
|
||||||
from Carbon import File, Files
|
from Carbon import File, Files
|
||||||
import os
|
import os
|
||||||
import sys
|
|
||||||
import MacOS
|
import MacOS
|
||||||
import time
|
|
||||||
try:
|
try:
|
||||||
openrf = MacOS.openrf
|
openrf = MacOS.openrf
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
|
|
|
@ -4,7 +4,6 @@ Do not import directly, use urllib instead."""
|
||||||
|
|
||||||
import string
|
import string
|
||||||
import urllib
|
import urllib
|
||||||
import os
|
|
||||||
|
|
||||||
__all__ = ["url2pathname","pathname2url"]
|
__all__ = ["url2pathname","pathname2url"]
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
# misrepresented as being the original software.
|
# misrepresented as being the original software.
|
||||||
# 3. This notice may not be removed or altered from any source distribution.
|
# 3. This notice may not be removed or altered from any source distribution.
|
||||||
|
|
||||||
import os, unittest
|
import unittest
|
||||||
import sqlite3 as sqlite
|
import sqlite3 as sqlite
|
||||||
|
|
||||||
class CollationTests(unittest.TestCase):
|
class CollationTests(unittest.TestCase):
|
||||||
|
|
|
@ -55,7 +55,7 @@ PROTOCOL_SSLv23
|
||||||
PROTOCOL_TLSv1
|
PROTOCOL_TLSv1
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import os, sys, textwrap
|
import textwrap
|
||||||
|
|
||||||
import _ssl # if we can't import it, let the error propagate
|
import _ssl # if we can't import it, let the error propagate
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,6 @@ the same application, the present example should work just fine. DC
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import os, sys, time, thread, unittest
|
import os, sys, time, thread, unittest
|
||||||
from test.test_support import TestSkipped
|
|
||||||
|
|
||||||
LONGSLEEP = 2
|
LONGSLEEP = 2
|
||||||
SHORTSLEEP = 0.5
|
SHORTSLEEP = 0.5
|
||||||
|
|
|
@ -5,7 +5,6 @@ Tests common to list and UserList.UserList
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
|
|
||||||
import unittest
|
|
||||||
from test import test_support, seq_tests
|
from test import test_support, seq_tests
|
||||||
|
|
||||||
class CommonTest(seq_tests.CommonTest):
|
class CommonTest(seq_tests.CommonTest):
|
||||||
|
|
|
@ -3,7 +3,6 @@ Tests common to tuple, list and UserList.UserList
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import unittest
|
import unittest
|
||||||
from test import test_support
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Various iterables
|
# Various iterables
|
||||||
|
|
|
@ -7,7 +7,7 @@ This should generate Barry's example, modulo some quotes and newlines.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import unittest, sys, StringIO
|
import unittest, StringIO
|
||||||
from test.test_support import run_unittest
|
from test.test_support import run_unittest
|
||||||
|
|
||||||
import warnings
|
import warnings
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import unittest
|
import unittest
|
||||||
from test.test_support import verbose, run_unittest
|
from test.test_support import run_unittest
|
||||||
import sys
|
import sys
|
||||||
import warnings
|
import warnings
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
|
|
||||||
"""Unit tests for abc.py."""
|
"""Unit tests for abc.py."""
|
||||||
|
|
||||||
import sys
|
|
||||||
import unittest
|
import unittest
|
||||||
from test import test_support
|
from test import test_support
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,6 @@ import macostools
|
||||||
import Carbon.File
|
import Carbon.File
|
||||||
import MacOS
|
import MacOS
|
||||||
import os
|
import os
|
||||||
import sys
|
|
||||||
from test import test_support
|
from test import test_support
|
||||||
import struct
|
import struct
|
||||||
import applesingle
|
import applesingle
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
import unittest
|
import unittest
|
||||||
from test import test_support
|
from test import test_support
|
||||||
from weakref import proxy
|
from weakref import proxy
|
||||||
import array, cStringIO, math
|
import array, cStringIO
|
||||||
from cPickle import loads, dumps
|
from cPickle import loads, dumps
|
||||||
|
|
||||||
class ArraySubclass(array.array):
|
class ArraySubclass(array.array):
|
||||||
|
|
|
@ -4,7 +4,7 @@ The file 185test.db found in Lib/test/ is for testing purposes with this
|
||||||
testing suite.
|
testing suite.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
from test.test_support import verbose, run_unittest, findfile
|
from test.test_support import run_unittest, findfile
|
||||||
import unittest
|
import unittest
|
||||||
import bsddb185
|
import bsddb185
|
||||||
import anydbm
|
import anydbm
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
"Test the functionality of Python classes implementing operators."
|
"Test the functionality of Python classes implementing operators."
|
||||||
|
|
||||||
import unittest
|
import unittest
|
||||||
import sys
|
|
||||||
|
|
||||||
from test import test_support
|
from test import test_support
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,6 @@ Original by Michael Schneider
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
from test import test_support
|
|
||||||
import cmd
|
import cmd
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
@ -170,7 +169,7 @@ def test_main(verbose=None):
|
||||||
from test import test_support, test_cmd
|
from test import test_support, test_cmd
|
||||||
test_support.run_doctest(test_cmd, verbose)
|
test_support.run_doctest(test_cmd, verbose)
|
||||||
|
|
||||||
import trace, sys,re,StringIO
|
import trace, sys
|
||||||
def test_coverage(coverdir):
|
def test_coverage(coverdir):
|
||||||
tracer=trace.Trace(ignoredirs=[sys.prefix, sys.exec_prefix,],
|
tracer=trace.Trace(ignoredirs=[sys.prefix, sys.exec_prefix,],
|
||||||
trace=0, count=1)
|
trace=0, count=1)
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import copy
|
import copy
|
||||||
import sys
|
|
||||||
import warnings
|
import warnings
|
||||||
import unittest
|
import unittest
|
||||||
from test.test_support import run_unittest, TestFailed
|
from test.test_support import run_unittest, TestFailed
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
import sys
|
|
||||||
import unittest
|
import unittest
|
||||||
from test import test_support
|
from test import test_support
|
||||||
|
|
||||||
|
|
|
@ -52,7 +52,8 @@ class CompilerTest(unittest.TestCase):
|
||||||
compiler.compile(buf, basename, "exec")
|
compiler.compile(buf, basename, "exec")
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
args = list(e.args)
|
args = list(e.args)
|
||||||
args[0] += "[in file %s]" % basename
|
args.append("in file %s]" % basename)
|
||||||
|
#args[0] += "[in file %s]" % basename
|
||||||
e.args = tuple(args)
|
e.args = tuple(args)
|
||||||
raise
|
raise
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
"""Unit tests for the copy module."""
|
"""Unit tests for the copy module."""
|
||||||
|
|
||||||
import sys
|
|
||||||
import copy
|
import copy
|
||||||
import copy_reg
|
import copy_reg
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import cPickle
|
import cPickle
|
||||||
import unittest
|
|
||||||
from cStringIO import StringIO
|
from cStringIO import StringIO
|
||||||
from test.pickletester import AbstractPickleTests, AbstractPickleModuleTests
|
from test.pickletester import AbstractPickleTests, AbstractPickleModuleTests
|
||||||
from test import test_support
|
from test import test_support
|
||||||
|
|
|
@ -4,7 +4,6 @@ See http://www.zope.org/Members/fdrake/DateTimeWiki/TestCases
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
|
||||||
import pickle
|
import pickle
|
||||||
import cPickle
|
import cPickle
|
||||||
import unittest
|
import unittest
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
Roger E. Masse
|
Roger E. Masse
|
||||||
"""
|
"""
|
||||||
import os
|
import os
|
||||||
import random
|
|
||||||
import dbm
|
import dbm
|
||||||
from dbm import error
|
from dbm import error
|
||||||
from test.test_support import verbose, verify, TestSkipped, TESTFN
|
from test.test_support import verbose, verify, TestSkipped, TESTFN
|
||||||
|
|
|
@ -4,7 +4,6 @@ from test import test_support, seq_tests
|
||||||
from weakref import proxy
|
from weakref import proxy
|
||||||
import copy
|
import copy
|
||||||
import cPickle as pickle
|
import cPickle as pickle
|
||||||
from cStringIO import StringIO
|
|
||||||
import random
|
import random
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import unittest
|
import unittest
|
||||||
from test import test_support
|
from test import test_support
|
||||||
|
|
||||||
import sys, UserDict, cStringIO, random, string
|
import UserDict, random, string
|
||||||
|
|
||||||
|
|
||||||
class DictTest(unittest.TestCase):
|
class DictTest(unittest.TestCase):
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Minimal tests for dis module
|
# Minimal tests for dis module
|
||||||
|
|
||||||
from test.test_support import verbose, run_unittest
|
from test.test_support import run_unittest
|
||||||
import unittest
|
import unittest
|
||||||
import sys
|
import sys
|
||||||
import dis
|
import dis
|
||||||
|
|
|
@ -2418,7 +2418,7 @@ def test_main():
|
||||||
from test import test_doctest
|
from test import test_doctest
|
||||||
test_support.run_doctest(test_doctest, verbosity=True)
|
test_support.run_doctest(test_doctest, verbosity=True)
|
||||||
|
|
||||||
import trace, sys, re, StringIO
|
import trace, sys
|
||||||
def test_coverage(coverdir):
|
def test_coverage(coverdir):
|
||||||
tracer = trace.Trace(ignoredirs=[sys.prefix, sys.exec_prefix,],
|
tracer = trace.Trace(ignoredirs=[sys.prefix, sys.exec_prefix,],
|
||||||
trace=0, count=1)
|
trace=0, count=1)
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
# Create a bunch of threads, let each do some work, wait until all are done
|
# Create a bunch of threads, let each do some work, wait until all are done
|
||||||
|
|
||||||
from test.test_support import verbose
|
from test.test_support import verbose
|
||||||
import random
|
|
||||||
import dummy_threading as _threading
|
import dummy_threading as _threading
|
||||||
import time
|
import time
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
# Copyright (C) 2001,2002 Python Software Foundation
|
# Copyright (C) 2001,2002 Python Software Foundation
|
||||||
# email package unit tests
|
# email package unit tests
|
||||||
|
|
||||||
import unittest
|
|
||||||
# The specific tests now live in Lib/email/test
|
# The specific tests now live in Lib/email/test
|
||||||
from email.test.test_email import suite
|
from email.test.test_email import suite
|
||||||
from test import test_support
|
from test import test_support
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
# Copyright (C) 2001-2006 Python Software Foundation
|
# Copyright (C) 2001-2006 Python Software Foundation
|
||||||
# email package unit tests
|
# email package unit tests
|
||||||
|
|
||||||
import unittest
|
|
||||||
# The specific tests now live in Lib/email/test
|
# The specific tests now live in Lib/email/test
|
||||||
from email.test.test_email_renamed import suite
|
from email.test.test_email_renamed import suite
|
||||||
from test import test_support
|
from test import test_support
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
#! /usr/bin/env python
|
#! /usr/bin/env python
|
||||||
"""test script for a few new invalid token catches"""
|
"""test script for a few new invalid token catches"""
|
||||||
|
|
||||||
import os
|
|
||||||
import unittest
|
import unittest
|
||||||
from test import test_support
|
from test import test_support
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
from test.test_support import verify, verbose, TestFailed, sortdict
|
from test.test_support import verify, TestFailed, sortdict
|
||||||
from UserList import UserList
|
from UserList import UserList
|
||||||
from UserDict import UserDict
|
from UserDict import UserDict
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ Nick Mathewson
|
||||||
import unittest
|
import unittest
|
||||||
from test.test_support import verbose, TESTFN, run_unittest
|
from test.test_support import verbose, TESTFN, run_unittest
|
||||||
from test.test_support import unlink as safe_unlink
|
from test.test_support import unlink as safe_unlink
|
||||||
import sys, os, re
|
import sys, re
|
||||||
from StringIO import StringIO
|
from StringIO import StringIO
|
||||||
from fileinput import FileInput, hook_encoded
|
from fileinput import FileInput, hook_encoded
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
"""Tests for Lib/fractions.py."""
|
"""Tests for Lib/fractions.py."""
|
||||||
|
|
||||||
from decimal import Decimal
|
from decimal import Decimal
|
||||||
from test.test_support import run_unittest, verbose
|
from test.test_support import run_unittest
|
||||||
import math
|
import math
|
||||||
import operator
|
import operator
|
||||||
import fractions
|
import fractions
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
import unittest
|
import unittest
|
||||||
from test import test_support
|
from test import test_support
|
||||||
import sys
|
|
||||||
|
|
||||||
import warnings, re
|
import warnings
|
||||||
warnings.filterwarnings("ignore",
|
warnings.filterwarnings("ignore",
|
||||||
category=DeprecationWarning,
|
category=DeprecationWarning,
|
||||||
message=".*integer argument expected, got float",
|
message=".*integer argument expected, got float",
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
import unittest
|
import unittest
|
||||||
from test import test_support
|
from test import test_support
|
||||||
import sys, os
|
import os
|
||||||
import gzip
|
import gzip
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
|
|
||||||
import HTMLParser
|
import HTMLParser
|
||||||
import pprint
|
import pprint
|
||||||
import sys
|
|
||||||
import unittest
|
import unittest
|
||||||
from test import test_support
|
from test import test_support
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import httplib
|
import httplib
|
||||||
import StringIO
|
import StringIO
|
||||||
import sys
|
|
||||||
import socket
|
import socket
|
||||||
|
|
||||||
from unittest import TestCase
|
from unittest import TestCase
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
from test.test_support import verbose, unlink, findfile
|
from test.test_support import verbose, unlink, findfile
|
||||||
|
|
||||||
import imgfile, uu, os
|
import imgfile, uu
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import imp
|
import imp
|
||||||
import thread
|
|
||||||
import unittest
|
import unittest
|
||||||
from test import test_support
|
from test import test_support
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
import unittest
|
import unittest
|
||||||
from test import test_support
|
from test import test_support
|
||||||
import operator
|
import operator
|
||||||
import sys
|
|
||||||
from sys import maxint
|
from sys import maxint
|
||||||
maxsize = test_support.MAX_Py_ssize_t
|
maxsize = test_support.MAX_Py_ssize_t
|
||||||
minsize = -maxsize-1
|
minsize = -maxsize-1
|
||||||
|
|
|
@ -4,13 +4,9 @@ test_support.requires('audio')
|
||||||
from test.test_support import findfile, TestSkipped, run_unittest
|
from test.test_support import findfile, TestSkipped, run_unittest
|
||||||
|
|
||||||
import errno
|
import errno
|
||||||
import fcntl
|
|
||||||
import linuxaudiodev
|
import linuxaudiodev
|
||||||
import os
|
|
||||||
import sys
|
import sys
|
||||||
import select
|
|
||||||
import sunaudio
|
import sunaudio
|
||||||
import time
|
|
||||||
import audioop
|
import audioop
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue