summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWill Thompson <will@willthompson.co.uk>2018-09-19 11:06:26 +0100
committerWill Thompson <will@willthompson.co.uk>2018-09-19 11:07:23 +0100
commit9664bdf9f56841d9f97c4fe614748224cefe08e1 (patch)
tree6edef2545bdd34fd7e9a4cd07397ba441cfc3bfc /src
parentf5bfec6d228754a53f2a8eb547e7675da09d7ede (diff)
downloadd-feet-9664bdf9f56841d9f97c4fe614748224cefe08e1.tar.gz
Fix a few unused variable/import warnings
These were all reported by flake8.
Diffstat (limited to 'src')
-rw-r--r--src/dfeet/addconnectiondialog.py2
-rw-r--r--src/dfeet/bus_watch.py1
-rw-r--r--src/dfeet/dbus_utils.py1
-rw-r--r--src/dfeet/window.py1
4 files changed, 1 insertions, 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):