Ticket #31 (closed defect: fixed)

Opened 6 years ago

Last modified 6 years ago

python2.3 compatability and optparse

Reported by: ashleywalsh@… Owned by: ianb
Priority: normal Milestone:
Component: paste Version: svn-trunk
Severity: normal Keywords:
Cc:

Description

paste.script.bool_optparse uses optparse._ as gettext.gettext, which appears to be a 2.4 change.

It can be fixed with::

try: _ = optparse._ except AttributeError?: from gettext import gettext as _

Change History

Changed 6 years ago by ashleywalsh@…

Sorry about the formatting -- too many wiki formatting rules to keep track of.

Changed 6 years ago by ashleywalsh@…

Also paste.evalexception.EvalException? has @ decorators on show_frame and exec_input

Changed 6 years ago by ianb

  • status changed from new to closed
  • resolution set to fixed

Decorator fixed in r3673; the _ was fixed a revision or two before.

Changed 6 years ago by ianb

I misread the optparse bug; that's fixed now in r3674

Note: See TracTickets for help on using tickets.