Modify ↓
Opened 17 years ago
Closed 17 years ago
#6366 closed defect (fixed)
[patch] Pygments version information not displaying
Reported by: | 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: |
Description
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
82 82 </html>""" 83 83 84 84 def __init__(self): 85 import pygments86 85 version = get_pkginfo(pygments).get('version') 87 86 # if installed from source, fallback to the hardcoded version info 88 87 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)
Note:
See TracTickets
for help on using tickets.
Patch applied in [6166]. Thanks!