From: Oleg Broytman Date: Sat, 24 Feb 2024 13:43:14 +0000 (+0300) Subject: Style: Fix `flake8` error E402 module level import not at top of file X-Git-Tag: 5.1.0~11 X-Git-Url: https://git.phdru.name/?p=xsetbg.git;a=commitdiff_plain;h=0ece1df14f89c4bbc0af81b7683843af225181cb Style: Fix `flake8` error E402 module level import not at top of file --- diff --git a/xsetbg-wsgi.py b/xsetbg-wsgi.py index c4d5800..5a435b4 100755 --- a/xsetbg-wsgi.py +++ b/xsetbg-wsgi.py @@ -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")