Edgewall Software

Opened 14 years ago

Closed 14 years ago

#6366 closed defect (fixed)

[patch] Pygments version information not displaying

Reported by: osimons <simon-code@…> Owned by: Jonas Borgström
Priority: normal Milestone: 0.11
Component: general Version: devel
Severity: minor Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:


This was noticed on IRC with cmlenz and mitsuhiko the other week, but seems it was forgotten again. It is likely a leftover from the renaming of the module to trac.mimeview.pygments.

  • trac/mimeview/pygments.py

    8484    def __init__(self):
    85         import pygments
    8685        version = get_pkginfo(pygments).get('version')
    8786        # if installed from source, fallback to the hardcoded version info
    8887        if not version and hasattr(pygments, '__version__'):

Package pygments is already imported on module level via the 'kludge' - this second import won't do any good.

Attachments (0)

Change History (1)

comment:1 by Christian Boos, 14 years ago

Resolution: fixed
Status: newclosed

Patch applied in [6166]. Thanks!

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström to the specified user.

Add Comment

E-mail address and name can be saved in the Preferences .
Note: See TracTickets for help on using tickets.