[d-feet/enable-gitlab-ci: 4/6] Fix a few unused variable/import warnings
- From: Will Thompson <wjt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [d-feet/enable-gitlab-ci: 4/6] Fix a few unused variable/import warnings
- Date: Wed, 19 Sep 2018 10:08:01 +0000 (UTC)
commit 9664bdf9f56841d9f97c4fe614748224cefe08e1
Author: Will Thompson <will willthompson co uk>
Date: Wed Sep 19 11:06:26 2018 +0100
Fix a few unused variable/import warnings
These were all reported by flake8.
src/dfeet/addconnectiondialog.py | 2 +-
src/dfeet/bus_watch.py | 1 -
src/dfeet/dbus_utils.py | 1 -
src/dfeet/window.py | 1 -
4 files changed, 1 insertion(+), 4 deletions(-)
---
diff --git a/src/dfeet/addconnectiondialog.py b/src/dfeet/addconnectiondialog.py
index 4953287..9624904 100644
--- a/src/dfeet/addconnectiondialog.py
+++ b/src/dfeet/addconnectiondialog.py
@@ -45,7 +45,7 @@ class AddConnectionDialog:
elif response == Gtk.ResponseType.OK:
# check if given address is valid
try:
- is_supported = Gio.dbus_is_supported_address(self.address)
+ Gio.dbus_is_supported_address(self.address)
except Exception as e:
self.label_status.set_text(str(e))
self.run()
diff --git a/src/dfeet/bus_watch.py b/src/dfeet/bus_watch.py
index b8f5e5e..a6472ed 100644
--- a/src/dfeet/bus_watch.py
+++ b/src/dfeet/bus_watch.py
@@ -354,7 +354,6 @@ class BusWatch(object):
if __name__ == "__main__":
"""for debugging"""
- import sys
import argparse
parser = argparse.ArgumentParser(description='show a given bus address')
diff --git a/src/dfeet/dbus_utils.py b/src/dfeet/dbus_utils.py
index 163b658..4aa5fde 100644
--- a/src/dfeet/dbus_utils.py
+++ b/src/dfeet/dbus_utils.py
@@ -153,7 +153,6 @@ def type_list_to_string(type_list):
def sig_to_markup(sig, span_attr_str):
list_ = sig_to_type_list(sig)
- markedup_list = []
m = '<span ' + span_attr_str + '>'
m += type_list_to_string(list_)
m += '</span>'
diff --git a/src/dfeet/window.py b/src/dfeet/window.py
index b8f98eb..bfc08cc 100644
--- a/src/dfeet/window.py
+++ b/src/dfeet/window.py
@@ -27,7 +27,6 @@ from dfeet.bus_watch import BusWatch
from dfeet.settings import Settings
from dfeet.uiloader import UILoader
from dfeet.addconnectiondialog import AddConnectionDialog
-from dfeet.executemethoddialog import ExecuteMethodDialog
class DFeetWindow(Gtk.ApplicationWindow):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]