Ticket #4830 (closed defect: fixed)

Opened 4 years ago

Last modified 8 months ago

NameError: global name 'sorted' is not defined on python 2.3

Reported by: trac-hacks@revragnarok.com Assigned to: hasienda
Priority: normal Component: AccountManagerPlugin
Severity: normal Keywords: compatibility python2.3
Cc: Trac Release: 0.11

Description

I had to apply the patch in #3760 to admin.py and then it was happy.

Attachments

Change History

10/13/10 20:52:58 changed by hasienda

(In [9289]) AccountManagerPlugin: Don't care about Python2.3 compatibility for future development, refs #4830.

Hint: Trac 0.13dev finally dropped even Python2.4 compatibility to past the limitation, that with statements are not supported before Python2.5 .

10/13/10 21:06:26 changed by hasienda

  • keywords set to compatibility python2.3.
  • owner changed from mgood to hasienda.

If you really need to use operation systems with an Python version older then 2.5, you're in serious trouble for other reasons as well. Even Debian GNU/Linux, that sets a very conservative standard for software versions, has Python2.5 these days.

While I'll not stand it in trunk anymore, I'll allow and correct it in 0.10 and 0.11 branch. But beware, as with the next big merge from trunk to 0.11 branch this might be gone there forever as well.

10/13/10 21:08:53 changed by hasienda

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

(In [9290]) AccountManagerPlugin: Correct Python2.3 compatibility import in 0.10 and 0.11 branch, closes #4830.

09/07/12 20:24:55 changed by hasienda

(In [11950]) AccountManagerPlugin: Revert change in [9290] for 0.10 branch, refs #4830 and #10282.


Add/Change #4830 (NameError: global name 'sorted' is not defined on python 2.3)




Change Properties
Action