Modify

Opened 9 years ago

Closed 9 years ago

#3760 closed defect (fixed)

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

Reported by: daniele.domenichelli@… Owned by: Catalin BALAN
Priority: normal Component: MenusPlugin
Severity: major Keywords: python 2.3
Cc: Trac Release: 0.11

Description

On python 2.3 sorted() is not defined.

I got this error:

NameError: global name 'sorted' is not defined

Here is a fix

  • tracmenus/web_ui.py

     
    88from trac.web.chrome import add_script, add_stylesheet,ITemplateProvider
    99from trac.config import ListOption
    1010from trac.util.html import html
     11from trac.util.compat import sorted
    1112
    1213
    1314class MenuManagerModule(Component):

Attachments (0)

Change History (2)

comment:1 Changed 9 years ago by anonymous

Keywords: python 2.3 added

comment:2 Changed 9 years ago by Catalin BALAN

Resolution: fixed
Status: newclosed

(In [4313]) MenusPlugin: - Fixed #3760. Thank you daniele.domenichelli

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Catalin BALAN.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.