diff options
Diffstat (limited to 'hgext/highlight/__init__.py')
-rw-r--r-- | hgext/highlight/__init__.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/hgext/highlight/__init__.py b/hgext/highlight/__init__.py index fc47815..55e3c18 100644 --- a/hgext/highlight/__init__.py +++ b/hgext/highlight/__init__.py @@ -24,7 +24,6 @@ The default is 'colorful'. import highlight from mercurial.hgweb import webcommands, webutil, common from mercurial import extensions, encoding -testedwith = 'internal' def filerevision_highlight(orig, web, tmpl, fctx): mt = ''.join(tmpl('mimetype', encoding=encoding.encoding)) @@ -52,13 +51,11 @@ def generate_css(web, req, tmpl): pg_style = web.config('web', 'pygments_style', 'colorful') fmter = highlight.HtmlFormatter(style = pg_style) req.respond(common.HTTP_OK, 'text/css') - return ['/* pygments_style = %s */\n\n' % pg_style, - fmter.get_style_defs('')] + return ['/* pygments_style = %s */\n\n' % pg_style, fmter.get_style_defs('')] def extsetup(): # monkeypatch in the new version - extensions.wrapfunction(webcommands, '_filerevision', - filerevision_highlight) + extensions.wrapfunction(webcommands, '_filerevision', filerevision_highlight) extensions.wrapfunction(webcommands, 'annotate', annotate_highlight) webcommands.highlightcss = generate_css webcommands.__all__.append('highlightcss') |