comparison hgweb.cgi @ 43691:47ef023d0165

black: blacken scripts These scripts weren't blackened. I found these as part of adding script checking to test-check-format.t. # skip-blame black Differential Revision: https://phab.mercurial-scm.org/D7446
author Gregory Szorc <gregory.szorc@gmail.com>
date Sat, 16 Nov 2019 11:53:47 -0800
parents 4b0fc75f9403
children d58a205d0672
comparison
equal deleted inserted replaced
43690:15cccbacd5ce 43691:47ef023d0165
6 # Path to repo or hgweb config to serve (see 'hg help hgweb') 6 # Path to repo or hgweb config to serve (see 'hg help hgweb')
7 config = "/path/to/repo/or/config" 7 config = "/path/to/repo/or/config"
8 8
9 # Uncomment and adjust if Mercurial is not installed system-wide 9 # Uncomment and adjust if Mercurial is not installed system-wide
10 # (consult "installed modules" path from 'hg debuginstall'): 10 # (consult "installed modules" path from 'hg debuginstall'):
11 #import sys; sys.path.insert(0, "/path/to/python/lib") 11 # import sys; sys.path.insert(0, "/path/to/python/lib")
12 12
13 # Uncomment to send python tracebacks to the browser if an error occurs: 13 # Uncomment to send python tracebacks to the browser if an error occurs:
14 #import cgitb; cgitb.enable() 14 # import cgitb; cgitb.enable()
15 15
16 from mercurial import demandimport; demandimport.enable() 16 from mercurial import demandimport
17
18 demandimport.enable()
17 from mercurial.hgweb import hgweb, wsgicgi 19 from mercurial.hgweb import hgweb, wsgicgi
20
18 application = hgweb(config) 21 application = hgweb(config)
19 wsgicgi.launch(application) 22 wsgicgi.launch(application)