Ticket #5966: scripts_trial_py3.patch

File scripts_trial_py3.patch, 696 bytes (added by realcr, 8 months ago)

Minor syntax changes for python3 porting.

  • twisted/scripts/trial.py

    diff --git twisted/scripts/trial.py twisted/scripts/trial.py
    index 7cdaa3c..38f8a76 100644
     
    33# Copyright (c) Twisted Matrix Laboratories. 
    44# See LICENSE for details. 
    55 
     6from __future__ import print_function,division,absolute_import 
    67 
    7 from __future__ import print_function 
    88import gc 
    99import inspect 
    1010import os 
    def run(): 
    599599    config = Options() 
    600600    try: 
    601601        config.parseOptions() 
    602     except usage.error, ue: 
    603         raise SystemExit, "%s: %s" % (sys.argv[0], ue) 
     602    except usage.error as ue: 
     603        raise SystemExit("%s: %s" % (sys.argv[0], ue)) 
    604604    _initialDebugSetup(config) 
    605605 
    606606    try: