Ticket #5385: 5385_4.patch

File 5385_4.patch, 5.5 KB (added by moijes12, 5 years ago)

Attaching patch with taking into consideration exarkun's comments.

  • twisted/protocols/htb.py

     
    1616@author: Kevin Turner
    1717"""
    1818
    19 from __future__ import nested_scopes
    20 
    2119__version__ = '$Revision: 1.5 $'[11:-2]
    2220
    2321
  • twisted/protocols/ident.py

     
    88@author: Jean-Paul Calderone
    99"""
    1010
    11 from __future__ import generators
    12 
    1311import struct
    1412
    1513from twisted.internet import defer
  • twisted/scripts/tkunzip.py

     
    66Post-install GUI to compile to pyc and unpack twisted doco
    77"""
    88
    9 from __future__ import generators
    10 
    119import sys
    1210import zipfile
    1311import py_compile
  • twisted/conch/scripts/tkconch.py

     
    88""" Implementation module for the `tkconch` command.
    99"""
    1010
    11 from __future__ import nested_scopes
    12 
    1311import Tkinter, tkFileDialog, tkFont, tkMessageBox, string
    1412from twisted.conch.ui import tkvt100
    1513from twisted.conch.ssh import transport, userauth, connection, common, keys
  • twisted/words/im/pbsupport.py

     
    44
    55"""L{twisted.words} support for Instance Messenger."""
    66
    7 from __future__ import nested_scopes
    8 
    97from twisted.internet import defer
    108from twisted.internet import error
    119from twisted.python import log
  • twisted/persisted/journal/base.py

     
    33# Copyright (c) Twisted Matrix Laboratories.
    44# See LICENSE for details.
    55
    6 #
    7 
    8 
    96"""Basic classes and interfaces for journal."""
    107
    11 from __future__ import nested_scopes
    12 
    138# system imports
    149import os, time
    1510
  • twisted/test/test_defgen.py

     
    1 from __future__ import generators, nested_scopes
    2 
    31import sys
    42
    53from twisted.internet import reactor
  • twisted/internet/_threadedselect.py

     
    33# Copyright (c) Twisted Matrix Laboratories.
    44# See LICENSE for details.
    55
    6 from __future__ import generators
    7 
    86"""
    97Threaded select reactor
    108
  • twisted/trial/test/detests.py

     
    1 from __future__ import generators
    21from twisted.trial import unittest
    32from twisted.internet import defer, threads, reactor
    43
  • twisted/spread/ui/gtk2util.py

     
    22# Copyright (c) Twisted Matrix Laboratories.
    33# See LICENSE for details.
    44
    5 
    6 from __future__ import nested_scopes
    7 
    85import gtk
    96
    107from twisted import copyright
  • doc/core/examples/pbgtk2.py

     
    11# Copyright (c) Twisted Matrix Laboratories.
    22# See LICENSE for details.
    33
    4 
    5 from __future__ import nested_scopes
    6 
    74from twisted.internet import gtk2reactor
    85gtk2reactor.install()
    96
  • doc/core/examples/longex2.py

     
    4040result is 1. In that, this example departs from doc/examples/longex.py,
    4141which errors out when trying to do this.
    4242"""
    43 from __future__ import generators
    4443from twisted.protocols import basic
    4544from twisted.internet import defer, protocol
    4645
  • doc/core/examples/threadedselect/pygamedemo.py

     
    1 from __future__ import generators
    2 
    31# import Twisted and install
    42from twisted.internet import _threadedselect
    53_threadedselect.install()
  • doc/web/examples/lj.rpy.py

     
    44#
    55# Syndicate LiveJournal users
    66# Demonstrates how to use chained callbacks
    7 from __future__ import nested_scopes
    87
    98from twisted.web import resource as resourcelib
    109from twisted.web import client, microdom, domhelpers, server