]> git.phdru.name Git - xsetbg.git/commitdiff
Style: Fix `flake8` errors E302,E305 expected 2 blank lines, found 1
authorOleg Broytman <phd@phdru.name>
Sat, 24 Feb 2024 13:40:53 +0000 (16:40 +0300)
committerOleg Broytman <phd@phdru.name>
Sat, 24 Feb 2024 13:59:43 +0000 (16:59 +0300)
print-filename.py
xsetbg-dbus-client.py
xsetbg-wsgi.py

index 676aed241a61f27339d011788d0bd5d7491f0ec3..234d0a3741b88a77e9fa8c33ea6facb15e3e7f6e 100755 (executable)
@@ -53,8 +53,8 @@ def get_args():
         output_encoding = default_encoding
     return index, output_encoding
 
-index, output_encoding = get_args()
 
+index, output_encoding = get_args()
 filename = xsetbg_db.select('last_shown IS NOT NULL',
                             orderBy='-last_shown')[index].full_name
 
index e3a7825f5eae34fdafe0d7ea81e2234073602b95..b2aff341531f1cda045f496e557b1a31471014d6 100755 (executable)
@@ -6,6 +6,7 @@
 import sys
 import dbus
 
+
 def main():
     try:
         command = sys.argv[1]
@@ -18,5 +19,6 @@ def main():
 
     getattr(iface, command)()
 
+
 if __name__ == '__main__':
     main()
index 92d125395c58c051f6c808fc797ea637ecc41d1d..c4d580032fe449cd30c49111032a7bb2f78aea44 100755 (executable)
@@ -25,18 +25,22 @@ else:
 
 commands = {}
 
+
 def published(func):
     commands[func.__name__] = func
     return func
 
+
 @published
 def change(force=False):
     _change()
 
+
 @published
 def force():
     _change(force=True)
 
+
 @published
 def stop():
     QuitWSGIServer._quit_flag = True
@@ -49,6 +53,7 @@ class QuitWSGIServer(WSGIServer):
         while not self._quit_flag:
             self.handle_request()
 
+
 def app(env, start_response):
     command = env['PATH_INFO'][1:]  # Remove the leading slash
     if command not in commands:
@@ -70,6 +75,7 @@ def app(env, start_response):
     start_response(status, response_headers)
     return ['Ok\n']
 
+
 force()
 httpd = make_server(host, port, app, server_class=QuitWSGIServer)
 httpd.serve_forever()