<type 'exceptions.TypeError'>
Python 2.7.17: /usr/bin/python
Fri Sep 18 17:37:32 2020

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

 /home/viff/opt/lib/python/fcgi.py in run(self=<fcgi.Request object>)
    578         """Runs the handler, flushes the streams, and ends the request."""
    579         try:
=>  580             protocolStatus, appStatus = self.server.handler(self)
    581         except:
    582             traceback.print_exc(file=self.stderr)
protocolStatus undefined, appStatus undefined, self = <fcgi.Request object>, self.server = <fcgi.WSGIServer object>, self.server.handler = <bound method WSGIServer.handler of <fcgi.WSGIServer object>>
 /home/viff/opt/lib/python/fcgi.py in handler(self=<fcgi.WSGIServer object>, req=<fcgi.Request object>)
   1266                 result = self.application(environ, start_response)
   1267                 try:
=> 1268                     for data in result:
   1269                         if data:
   1270                             write(data)
data undefined, result = <generator object run_wsgi>
 /usr/lib/python2.7/dist-packages/mercurial/hgweb/hgwebdir_mod.py in run_wsgi(self=<mercurial.hgweb.hgwebdir_mod.hgwebdir object>, req=<mercurial.hgweb.request.wsgirequest object>)
    227         with profiling.profile(self.ui, enabled=profile):
    228             try:
=>  229                 for r in self._runwsgi(req):
    230                     yield r
    231             finally:
r undefined, self = <mercurial.hgweb.hgwebdir_mod.hgwebdir object>, self._runwsgi = <bound method hgwebdir._runwsgi of <mercurial.hgweb.hgwebdir_mod.hgwebdir object>>, req = <mercurial.hgweb.request.wsgirequest object>
 /usr/lib/python2.7/dist-packages/mercurial/hgweb/hgweb_mod.py in run_wsgi(self=<mercurial.hgweb.hgweb_mod.hgweb object>, req=<mercurial.hgweb.request.wsgirequest object>)
    316             profile = repo.ui.configbool('profiling', 'enabled')
    317             with profiling.profile(repo.ui, enabled=profile):
=>  318                 for r in self._runwsgi(req, repo):
    319                     yield r
    320 
r undefined, self = <mercurial.hgweb.hgweb_mod.hgweb object>, self._runwsgi = <bound method hgweb._runwsgi of <mercurial.hgweb.hgweb_mod.hgweb object>>, req = <mercurial.hgweb.request.wsgirequest object>, repo = <filteredrepo:served <mercurial.localrepo.localrepository object>>
 /usr/lib/python2.7/dist-packages/mercurial/hgweb/hgweb_mod.py in _runwsgi(self=<mercurial.hgweb.hgweb_mod.hgweb object>, req=<mercurial.hgweb.request.wsgirequest object>, repo=<filteredrepo:served <mercurial.localrepo.localrepository object>>)
    444                 content = webcommands.rawfile(rctx, req, tmpl)
    445             else:
=>  446                 content = getattr(webcommands, cmd)(rctx, req, tmpl)
    447                 req.respond(HTTP_OK, ctype)
    448 
content undefined, builtin getattr = <built-in function getattr>, global webcommands = <module 'mercurial.hgweb.webcommands' from '/usr...7/dist-packages/mercurial/hgweb/webcommands.pyc'>, cmd = 'file', rctx = <mercurial.hgweb.hgweb_mod.requestcontext object>, req = <mercurial.hgweb.request.wsgirequest object>, tmpl = <mercurial.templater.templater object>
 /usr/lib/python2.7/dist-packages/mercurial/hgweb/webcommands.py in file(web=<mercurial.hgweb.hgweb_mod.requestcontext object>, req=<mercurial.hgweb.request.wsgirequest object>, tmpl=<mercurial.templater.templater object>)
    178         return manifest(web, req, tmpl)
    179     try:
=>  180         return _filerevision(web, req, tmpl, webutil.filectx(web.repo, req))
    181     except error.LookupError as inst:
    182         try:
global _filerevision = <function _filerevision>, web = <mercurial.hgweb.hgweb_mod.requestcontext object>, req = <mercurial.hgweb.request.wsgirequest object>, tmpl = <mercurial.templater.templater object>, global webutil = <module 'mercurial.hgweb.webutil' from '/usr/lib...on2.7/dist-packages/mercurial/hgweb/webutil.pyc'>, webutil.filectx = <function filectx>, web.repo = <filteredrepo:served <mercurial.localrepo.localrepository object>>
 /usr/lib/python2.7/dist-packages/mercurial/extensions.py in closure(*a=(<mercurial.hgweb.hgweb_mod.requestcontext object>, <mercurial.hgweb.request.wsgirequest object>, <mercurial.templater.templater object>, <filectx NEWS@d85e8f72b828>), **kw={})
    342     assert callable(func)
    343     def closure(*a, **kw):
=>  344         return func(*(args + a), **kw)
    345     return closure
    346 
func = <function filerevision_highlight>, args = (<function _filerevision>,), a = (<mercurial.hgweb.hgweb_mod.requestcontext object>, <mercurial.hgweb.request.wsgirequest object>, <mercurial.templater.templater object>, <filectx NEWS@d85e8f72b828>), kw = {}

<type 'exceptions.TypeError'>: filerevision_highlight() takes exactly 4 arguments (5 given)
      args = ('filerevision_highlight() takes exactly 4 arguments (5 given)',)
      message = 'filerevision_highlight() takes exactly 4 arguments (5 given)'