Ticket #5385: 5385_2.patch

File 5385_2.patch, 6.1 KB (added by moijes12, 3 years ago)
  • twisted/test/test_defgen.py

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

     
    66Logging and metrics infrastructure. 
    77""" 
    88 
    9 from __future__ import division 
    10  
    119import sys 
    1210import time 
    1311import warnings 
  • 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/protocols/htb.py

     
    1515    HOWTO<http://lartc.org/howto/lartc.qdisc.classless.html#AEN682>} 
    1616@author: Kevin Turner 
    1717""" 
    18  
    19 from __future__ import nested_scopes 
    20  
    2118__version__ = '$Revision: 1.5 $'[11:-2] 
    2219 
    2320 
  • 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/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/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

     
    88 
    99"""Basic classes and interfaces for journal.""" 
    1010 
    11 from __future__ import nested_scopes 
    12  
    1311# system imports 
    1412import os, time 
    1513 
  • 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/threadedselect/pygamedemo.py

     
    1 from __future__ import generators 
    2  
    31# import Twisted and install 
    42from twisted.internet import _threadedselect 
    53_threadedselect.install() 
  • 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/conch/examples/window.tac

     
    44# You can run this .tac file directly with: 
    55#    twistd -ny window.tac 
    66 
    7 from __future__ import division 
    8  
    97import string, random 
    108 
    119from twisted.python import log 
  • 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