Remove unused imports.

This commit is contained in:
Serhiy Storchaka 2016-12-16 20:00:15 +02:00
parent 5bb8b9134b
commit 70d28a184c
43 changed files with 0 additions and 60 deletions

View File

@ -16,7 +16,6 @@ to modify the meaning of the API call itself.
import collections
import concurrent.futures
import heapq
import inspect
import itertools
import logging
import os

View File

@ -72,7 +72,6 @@ import email.parser
import email.message
import http
import io
import os
import re
import socket
import collections

View File

@ -4,7 +4,6 @@ Coverage: 71% on Windows.
'''
from idlelib import macosx
from test.support import requires
import sys
import tkinter as tk
import unittest
import unittest.mock as mock

View File

@ -5,7 +5,6 @@ Coverage: 56%
from idlelib import tree
from test.support import requires
requires('gui')
import os
import unittest
from tkinter import Tk

View File

@ -2,7 +2,6 @@
A number of functions that enhance IDLE on Mac OSX.
"""
from sys import platform # Used in _init_tk_type, changed by test.
import warnings
import tkinter

View File

@ -1,6 +1,5 @@
import linecache
import os
import re
import sys
import tkinter as tk

View File

@ -13,7 +13,6 @@ There's also a pattern matching implementation here.
__author__ = "Guido van Rossum <guido@python.org>"
import sys
import warnings
from io import StringIO
HUGE = 0x7FFFFFFF # maximum repeat count, default max

View File

@ -1,7 +1,6 @@
# Author: Collin Winter
import os
import unittest
from test.support import load_package_tests

View File

@ -7,7 +7,6 @@ import marshal
import os
import sys
import types
import struct
import warnings
with warnings.catch_warnings():
warnings.simplefilter('ignore', DeprecationWarning)

View File

@ -126,7 +126,6 @@ __version__ = "0.4"
import socket
import selectors
import os
import errno
import sys
try:
import threading

View File

@ -6,11 +6,8 @@ import importlib
import sys
import os
import os.path
import tempfile
import subprocess
import py_compile
import contextlib
import shutil
import zipfile
from importlib.util import source_from_cache

View File

@ -1,5 +1,4 @@
import inspect
import sys
import types
import unittest

View File

@ -7,7 +7,6 @@ import io
import os
import re
import sys
import time
import types
import unittest
import weakref

View File

@ -12,7 +12,6 @@ import sys
import tempfile
import threading
import unittest
import warnings
from unittest import mock
if sys.platform == 'win32':

View File

@ -10,7 +10,6 @@ import pathlib
import random
import shutil
import subprocess
import sys
from test.support import unlink
import _compression

View File

@ -6,7 +6,6 @@ Original by Michael Schneider
import cmd
import sys
import re
import unittest
import io
from test import support

View File

@ -4,7 +4,6 @@
import test.support, unittest
import os
import shutil
import sys
import subprocess
import tempfile

View File

@ -2,7 +2,6 @@ import collections
import configparser
import io
import os
import sys
import textwrap
import unittest
import warnings

View File

@ -7,7 +7,6 @@ import operator
import os
import stat
import unittest
import warnings
import dbm.dumb as dumbdbm
from test import support
from functools import partial

View File

@ -37,8 +37,6 @@ from test.support import (run_unittest, run_doctest, is_resource_enabled,
from test.support import (check_warnings, import_fresh_module, TestFailed,
run_with_locale, cpython_only)
import random
import time
import warnings
import inspect
try:
import threading

View File

@ -2,7 +2,6 @@
from test.support import captured_stdout
from test.bytecode_helper import BytecodeTestCase
import difflib
import unittest
import sys
import dis

View File

@ -2,7 +2,6 @@ from contextlib import contextmanager
import datetime
import faulthandler
import os
import re
import signal
import subprocess
import sys

View File

@ -1,5 +1,3 @@
import gc
import sys
import types
import unittest
import weakref

View File

@ -14,7 +14,6 @@ import unittest
import unittest.mock as mock
import textwrap
import errno
import shutil
import contextlib
import test.support

View File

@ -1,5 +1,4 @@
import abc
import unittest
class FinderTests(metaclass=abc.ABCMeta):

View File

@ -1,5 +1,3 @@
import contextlib
import inspect
import io
import marshal
import os

View File

@ -10,7 +10,6 @@ import os
from os.path import normcase
import _pickle
import pickle
import re
import shutil
import sys
import types
@ -56,8 +55,6 @@ modfile = normcase(modfile)
def revise(filename, *args):
return (normcase(filename),) + args
import builtins
git = mod.StupidGit()
class IsTestBase(unittest.TestCase):

View File

@ -15,7 +15,6 @@ import locale
import mmap
import os
import pickle
import re
import shutil
import signal
import socket

View File

@ -1,7 +1,4 @@
import dis
import re
import sys
import textwrap
import unittest
from test.bytecode_helper import BytecodeTestCase

View File

@ -4,7 +4,6 @@
"""Tests for the raise statement."""
from test import support
import re
import sys
import types
import unittest

View File

@ -1,12 +1,9 @@
from test.support import verbose, run_unittest, gc_collect, bigmemtest, _2G, \
cpython_only, captured_stdout
import io
import locale
import re
import sre_compile
import string
import sys
import traceback
import unittest
import warnings
from re import Scanner

View File

@ -10,7 +10,6 @@ import warnings
import collections
import collections.abc
import itertools
import string
class PassThru(Exception):
pass

View File

@ -20,7 +20,6 @@ from shutil import (make_archive,
SameFileError)
import tarfile
import zipfile
import warnings
from test import support
from test.support import (TESTFN, check_warnings, captured_stdout,

View File

@ -1,15 +1,11 @@
import unittest
from test import support
from contextlib import closing
import enum
import gc
import pickle
import select
import signal
import socket
import struct
import subprocess
import traceback
import sys, os, time, errno
from test.support.script_helper import assert_python_ok, spawn_python
try:

View File

@ -11,7 +11,6 @@ import gc
import os
import errno
import pprint
import tempfile
import urllib.request
import traceback
import asyncore

View File

@ -1,4 +1,3 @@
import sys
import types
import unittest

View File

@ -1,6 +1,5 @@
"""Unit tests for zero-argument super() & related machinery."""
import sys
import unittest
import warnings
from test.support import check_warnings

View File

@ -2,7 +2,6 @@ import timeit
import unittest
import sys
import io
import time
from textwrap import dedent
from test.support import captured_stdout

View File

@ -1,5 +1,4 @@
import unittest
import sys
class PEP3131Test(unittest.TestCase):

View File

@ -1,8 +1,6 @@
# Ridiculously simple test of the winsound module for Windows.
import functools
import os
import subprocess
import time
import unittest

View File

@ -8,10 +8,7 @@ see <http://www.cosc.canterbury.ac.nz/greg.ewing/python/yield-from/YieldFrom-Pyt
"""
import unittest
import io
import sys
import inspect
import parser
from test.support import captured_stderr, disable_gc, gc_collect

View File

@ -94,7 +94,6 @@ import socket
import string
import sys
import time
import collections
import tempfile
import contextlib
import warnings

View File

@ -5,7 +5,6 @@ XXX references to utf-8 need further investigation.
"""
import io
import os
import re
import importlib.util
import sys
import time