Ticket #6297: kevinwo-6297.patch

File kevinwo-6297.patch, 12.8 KB (added by Kevin W, 5 years ago)
  • twisted/test/test_compat.py

     
    1212
    1313from twisted.trial import unittest
    1414
    15 from twisted.python.compat import set, frozenset, reduce, execfile, _PY3
     15from twisted.python.compat import reduce, execfile, _PY3
    1616from twisted.python.compat import comparable, cmp, nativeString, networkString
    1717from twisted.python.compat import unicode as unicodeCompat, lazyByteSlice
    1818from twisted.python.compat import reraise, NativeStringIO, iterbytes, intToBytes
  • twisted/test/test_process.py

     
    2828from twisted.internet import reactor, protocol, error, interfaces, defer
    2929from twisted.trial import unittest
    3030from twisted.python import util, runtime, procutils
    31 from twisted.python.compat import set
    3231
    3332
    3433
  • twisted/test/test_jelly.py

     
    1313    decimal = None
    1414
    1515from twisted.spread import jelly, pb
    16 from twisted.python.compat import set, frozenset
    1716from twisted.trial import unittest
    1817from twisted.test.proto_helpers import StringTransport
    1918
  • twisted/test/test_paths.py

     
    1111import contextlib
    1212from pprint import pformat
    1313
    14 from twisted.python.compat import set, _PY3
     14from twisted.python.compat import _PY3
    1515from twisted.python.win32 import WindowsError, ERROR_DIRECTORY
    1616from twisted.python import filepath
    1717from twisted.python.runtime import platform
  • twisted/test/test_task.py

     
    77
    88from __future__ import division, absolute_import
    99
    10 from twisted.python.compat import set
    11 
    1210from twisted.trial import unittest
    1311
    1412from twisted.internet import interfaces, task, reactor, defer, error
  • twisted/python/test/test_zipstream.py

     
    99import random
    1010import zipfile
    1111
    12 from twisted.python.compat import set
    1312from twisted.python import zipstream, filepath
    1413from twisted.python.hashlib import md5
    1514from twisted.trial import unittest
  • twisted/python/test/test_fakepwd.py

     
    2020
    2121from twisted.trial.unittest import TestCase
    2222from twisted.python.fakepwd import UserDatabase, ShadowDatabase
    23 from twisted.python.compat import set
    2423
    2524SYSTEM_UID_MAX = 999
    2625
  • twisted/mail/relaymanager.py

     
    3030
    3131from twisted.python import log
    3232from twisted.python.failure import Failure
    33 from twisted.python.compat import set
    3433from twisted.mail import relay
    3534from twisted.mail import bounce
    3635from twisted.internet import protocol
  • twisted/mail/maildir.py

     
    1818except ImportError:
    1919    import StringIO
    2020
    21 from twisted.python.compat import set
    2221from twisted.mail import pop3
    2322from twisted.mail import smtp
    2423from twisted.protocols import basic
  • twisted/protocols/amp.py

     
    182182
    183183from zope.interface import Interface, implements
    184184
    185 from twisted.python.compat import set
    186185from twisted.python.reflect import accumulateClassDict
    187186from twisted.python.failure import Failure
    188187from twisted.python import log, filepath
  • twisted/scripts/trial.py

     
    1212from twisted.python.filepath import FilePath
    1313from twisted import plugin
    1414from twisted.python.util import spewer
    15 from twisted.python.compat import set
    1615from twisted.trial import runner, itrial, reporter
    1716
    1817
  • twisted/internet/posixbase.py

     
    1515
    1616from zope.interface import implementer, classImplements
    1717
    18 from twisted.python.compat import set, _PY3
     18from twisted.python.compat import _PY3
    1919from twisted.internet.interfaces import IReactorUNIX, IReactorUNIXDatagram
    2020from twisted.internet.interfaces import (
    2121    IReactorTCP, IReactorUDP, IReactorSSL, IReactorSocket)
  • twisted/internet/_glibbase.py

     
    2020from twisted.internet import base, posixbase, selectreactor
    2121from twisted.internet.interfaces import IReactorFDSet
    2222from twisted.python import log
    23 from twisted.python.compat import set
    2423
    2524
    2625
  • twisted/internet/iocpreactor/reactor.py

     
    3232else:
    3333    _extraInterfaces = (interfaces.IReactorSSL,)
    3434
    35 from twisted.python.compat import set
    36 
    3735MAX_TIMEOUT = 2000 # 2 seconds, see doIteration for explanation
    3836
    3937EVENTS_PER_LOOP = 1000 # XXX: what's a good value here?
  • twisted/internet/test/test_posixbase.py

     
    77
    88from __future__ import division, absolute_import
    99
    10 from twisted.python.compat import set, _PY3
     10from twisted.python.compat import _PY3
    1111from twisted.trial.unittest import TestCase
    1212from twisted.internet.defer import Deferred
    1313from twisted.internet.posixbase import PosixReactorBase, _Waker
  • twisted/internet/test/test_process.py

     
    1111
    1212from twisted.trial.unittest import TestCase, SkipTest
    1313from twisted.internet.test.reactormixins import ReactorBuilder
    14 from twisted.python.compat import set
    1514from twisted.python.log import msg, err
    1615from twisted.python.runtime import platform, platformType
    1716from twisted.python.filepath import FilePath
  • twisted/internet/base.py

     
    1717
    1818import traceback
    1919
    20 from twisted.python.compat import set
    2120from twisted.internet.interfaces import IReactorCore, IReactorTime, IReactorThreads
    2221from twisted.internet.interfaces import IResolverSimple, IReactorPluggableResolver
    2322from twisted.internet.interfaces import IConnector, IDelayedCall
  • twisted/conch/test/test_openssh_compat.py

     
    99
    1010from twisted.trial.unittest import TestCase
    1111from twisted.python.filepath import FilePath
    12 from twisted.python.compat import set
    1312
    1413try:
    1514    import Crypto.Cipher.DES3
  • twisted/conch/test/test_tap.py

     
    2424    from twisted.conch import tap
    2525    from twisted.conch.openssh_compat.factory import OpenSSHFactory
    2626
    27 from twisted.python.compat import set
    2827from twisted.application.internet import StreamServerEndpointService
    2928from twisted.cred import error
    3029from twisted.cred.credentials import IPluggableAuthenticationModules
  • twisted/words/protocols/irc.py

     
    4141from twisted.persisted import styles
    4242from twisted.protocols import basic
    4343from twisted.python import log, reflect, text
    44 from twisted.python.compat import set
    4544
    4645NUL = chr(0)
    4746CR = chr(015)
  • twisted/names/test/test_client.py

     
    99
    1010from zope.interface.verify import verifyObject
    1111
    12 from twisted.python.compat import set
    1312from twisted.python import failure
    1413from twisted.python.filepath import FilePath
    1514from twisted.python.runtime import platform
  • twisted/trial/test/test_script.py

     
    1010from twisted.trial._dist.disttrial import DistTrialRunner
    1111from twisted.scripts import trial
    1212from twisted.python import util
    13 from twisted.python.compat import set
    1413from twisted.python.usage import UsageError
    1514from twisted.python.filepath import FilePath
    1615
  • twisted/trial/runner.py

     
    2323import doctest, time
    2424
    2525from twisted.python import reflect, log, failure, modules, filepath
    26 from twisted.python.compat import set
    2726
    2827from twisted.internet import defer
    2928from twisted.trial import util, unittest
  • twisted/trial/reporter.py

     
    1818
    1919from zope.interface import implementer
    2020
    21 from twisted.python.compat import set
    2221from twisted.python import _reflectpy3 as reflect, log
    2322from twisted.python.components import proxyForInterface
    2423from twisted.python.failure import Failure
  • twisted/web/test/test_wsgi.py

     
    1414
    1515from zope.interface.verify import verifyObject
    1616
    17 from twisted.python.compat import set
    1817from twisted.python.log import addObserver, removeObserver, err
    1918from twisted.python.failure import Failure
    2019from twisted.python.threadpool import ThreadPool
  • twisted/web/test/test_static.py

     
    1010from zope.interface.verify import verifyObject
    1111
    1212from twisted.internet import abstract, interfaces
    13 from twisted.python.compat import set
    1413from twisted.python.runtime import platform
    1514from twisted.python.filepath import FilePath
    1615from twisted.python import log
  • twisted/web/client.py

     
    3636from twisted.web import error
    3737from twisted.web.iweb import UNKNOWN_LENGTH, IBodyProducer, IResponse
    3838from twisted.web.http_headers import Headers
    39 from twisted.python.compat import set
    4039
    4140
    4241class PartialDownloadError(error.Error):
  • twisted/web/_newclient.py

     
    3333from twisted.python import log
    3434from twisted.python.reflect import fullyQualifiedName
    3535from twisted.python.failure import Failure
    36 from twisted.python.compat import set
    3736from twisted.internet.interfaces import IConsumer, IPushProducer
    3837from twisted.internet.error import ConnectionDone
    3938from twisted.internet.defer import Deferred, succeed, fail, maybeDeferred