]> git.phdru.name Git - xsetbg.git/commitdiff
Style: Fix `flake8` error E402 module level import not at top of file
authorOleg Broytman <phd@phdru.name>
Sat, 24 Feb 2024 13:43:14 +0000 (16:43 +0300)
committerOleg Broytman <phd@phdru.name>
Sat, 24 Feb 2024 13:59:44 +0000 (16:59 +0300)
xsetbg-wsgi.py

index c4d580032fe449cd30c49111032a7bb2f78aea44..5a435b4414942ba405aa83f061c36acddccdc98b 100755 (executable)
@@ -6,11 +6,12 @@
 from wsgiref import simple_server
 from wsgiref.handlers import SimpleHandler
 from wsgiref.simple_server import WSGIServer, make_server
-simple_server.ServerHandler = SimpleHandler  # Stop logging to stdout
 
 from xsetbg_conf import xsetbg_conf
 from xsetbg import change as _change
 
+simple_server.ServerHandler = SimpleHandler  # Stop logging to stdout
+
 # get httpd settings from config
 if xsetbg_conf.has_option("httpd", "host"):
     host = xsetbg_conf.get("httpd", "host")