Modify ↓
Opened 16 years ago
Closed 16 years ago
#3760 closed defect (fixed)
NameError: global name 'sorted' is not defined on python 2.3
Reported by: | 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
8 8 from trac.web.chrome import add_script, add_stylesheet,ITemplateProvider 9 9 from trac.config import ListOption 10 10 from trac.util.html import html 11 from trac.util.compat import sorted 11 12 12 13 13 14 class MenuManagerModule(Component):
Attachments (0)
Change History (2)
comment:1 Changed 16 years ago by
Keywords: | python 2.3 added |
---|
comment:2 Changed 16 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
(In [4313]) MenusPlugin: - Fixed #3760. Thank you daniele.domenichelli