fixup! Adjust blank lines to match Code Style Guide (see #103)

This commit is contained in:
coderkun 2024-05-27 18:08:58 +02:00
parent befd2e06e7
commit c04216e634
13 changed files with 14 additions and 20 deletions

View file

@ -1,10 +1,8 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
import os import os
# Set environment # Set environment
srcdir = os.path.abspath(os.path.dirname(__file__)) srcdir = os.path.abspath(os.path.dirname(__file__))
datadir = os.path.join(srcdir, 'data') datadir = os.path.join(srcdir, 'data')

View file

@ -1,7 +1,7 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
import gi import gi
gi.require_version('Gtk', '4.0') gi.require_version('Gtk', '4.0')
gi.require_version('Adw', '1') gi.require_version('Adw', '1')

View file

@ -1,14 +1,11 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
import logging import logging
import urllib
import gi import gi
gi.require_version('Gtk', '4.0') gi.require_version('Gtk', '4.0')
gi.require_version('Adw', '1') gi.require_version('Adw', '1')
from gi.repository import Gio, Gtk, Gdk, GLib, Adw from gi.repository import Gio, Gtk, Gdk, GLib, Adw
from .window import Window from .window import Window

View file

@ -1,6 +1,5 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
import concurrent.futures import concurrent.futures
import configparser import configparser
import dateutil.parser import dateutil.parser
@ -16,6 +15,7 @@ from mcg.utils import Utils
class MPDException(Exception): class MPDException(Exception):
def __init__(self, error): def __init__(self, error):
super(MPDException, self).__init__(self._parse_error(error)) super(MPDException, self).__init__(self._parse_error(error))
self._error = error self._error = error
@ -56,6 +56,7 @@ class CommandException(MPDException):
class Future(concurrent.futures.Future): class Future(concurrent.futures.Future):
def __init__(self, signal): def __init__(self, signal):
concurrent.futures.Future.__init__(self) concurrent.futures.Future.__init__(self)
self._signal = signal self._signal = signal
@ -65,6 +66,7 @@ class Future(concurrent.futures.Future):
class Base(): class Base():
def __init__(self): def __init__(self):
self._callbacks = {} self._callbacks = {}
@ -1109,6 +1111,7 @@ class MCGAlbum:
class MCGTrack: class MCGTrack:
def __init__(self, artists, title, file): def __init__(self, artists, title, file):
if type(artists) is not list: if type(artists) is not list:
artists = [artists] artists = [artists]

View file

@ -1,7 +1,7 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
import gi import gi
gi.require_version('Gtk', '4.0') gi.require_version('Gtk', '4.0')
gi.require_version('Adw', '1') gi.require_version('Adw', '1')
import locale import locale

View file

@ -1,13 +1,12 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
import gi import gi
gi.require_version('Gtk', '4.0') gi.require_version('Gtk', '4.0')
import logging import logging
import math import math
from gi.repository import Gtk, Gdk, GObject, GdkPixbuf from gi.repository import Gtk, Gdk, GObject, GdkPixbuf
from mcg.utils import Utils from mcg.utils import Utils

View file

@ -1,7 +1,7 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
import gi import gi
gi.require_version('Gtk', '4.0') gi.require_version('Gtk', '4.0')
gi.require_version('Adw', '1') gi.require_version('Adw', '1')
import locale import locale
@ -10,7 +10,6 @@ import math
import threading import threading
from gi.repository import Gtk, Gdk, GObject, GdkPixbuf, Gio, Adw from gi.repository import Gtk, Gdk, GObject, GdkPixbuf, Gio, Adw
from mcg import client from mcg import client
from mcg.albumheaderbar import AlbumHeaderbar from mcg.albumheaderbar import AlbumHeaderbar
from mcg.utils import SortOrder from mcg.utils import SortOrder

View file

@ -1,7 +1,7 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
import gi import gi
gi.require_version('Gtk', '4.0') gi.require_version('Gtk', '4.0')
gi.require_version('Adw', '1') gi.require_version('Adw', '1')
import logging import logging
@ -9,7 +9,6 @@ import math
import threading import threading
from gi.repository import Gtk, Gdk, Gio, GObject, GdkPixbuf, Adw from gi.repository import Gtk, Gdk, Gio, GObject, GdkPixbuf, Adw
from mcg import client from mcg import client
from mcg.albumheaderbar import AlbumHeaderbar from mcg.albumheaderbar import AlbumHeaderbar
from mcg.utils import Utils from mcg.utils import Utils

View file

@ -1,7 +1,7 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
import gi import gi
gi.require_version('Gtk', '4.0') gi.require_version('Gtk', '4.0')
gi.require_version('Adw', '1') gi.require_version('Adw', '1')

View file

@ -1,7 +1,7 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
import gi import gi
gi.require_version('Gtk', '4.0') gi.require_version('Gtk', '4.0')
gi.require_version('Adw', '1') gi.require_version('Adw', '1')
from gi.repository import Gtk from gi.repository import Gtk

View file

@ -1,7 +1,7 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
import gi import gi
gi.require_version('Gtk', '4.0') gi.require_version('Gtk', '4.0')
import hashlib import hashlib
import locale import locale

View file

@ -1,7 +1,7 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
import gi import gi
gi.require_version('Gtk', '4.0') gi.require_version('Gtk', '4.0')
gi.require_version('Adw', '1') gi.require_version('Adw', '1')
try: try:

View file

@ -1,6 +1,5 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
import gi import gi
try: try:
gi.require_version('Avahi', '0.6') gi.require_version('Avahi', '0.6')