diff 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
line wrap: on
line diff
--- a/hgweb.cgi	Sat Nov 16 11:59:22 2019 -0800
+++ b/hgweb.cgi	Sat Nov 16 11:53:47 2019 -0800
@@ -8,12 +8,15 @@
 
 # Uncomment and adjust if Mercurial is not installed system-wide
 # (consult "installed modules" path from 'hg debuginstall'):
-#import sys; sys.path.insert(0, "/path/to/python/lib")
+# import sys; sys.path.insert(0, "/path/to/python/lib")
 
 # Uncomment to send python tracebacks to the browser if an error occurs:
-#import cgitb; cgitb.enable()
+# import cgitb; cgitb.enable()
+
+from mercurial import demandimport
 
-from mercurial import demandimport; demandimport.enable()
+demandimport.enable()
 from mercurial.hgweb import hgweb, wsgicgi
+
 application = hgweb(config)
 wsgicgi.launch(application)