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
# -*- coding: utf-8 -*-
import os
# Set environment
srcdir = os.path.abspath(os.path.dirname(__file__))
datadir = os.path.join(srcdir, 'data')

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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