summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2018-02-02 10:55:34 +0100
committerThomas Haller <thaller@redhat.com>2018-02-07 13:32:04 +0100
commite4839accf5a5b470b9bf2287f0269ddc4ce0f91b (patch)
treebdc92d91b24d7b7fb25d8b9652dbe08d08e57cea /examples
parentca7273b3e250e46451d93e75a2234c403eed38aa (diff)
downloadNetworkManager-e4839accf5a5b470b9bf2287f0269ddc4ce0f91b.tar.gz
all: replace non-leading tabs with spaces
We commonly only allow tabs at the beginning of a line, not afterwards. The reason for this style is so that the code looks formated right with tabstop=4 and tabstop=8.
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/python/dbus/wifi-hotspot.py2
-rwxr-xr-xexamples/python/gi/device-state-ip4config.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/examples/python/dbus/wifi-hotspot.py b/examples/python/dbus/wifi-hotspot.py
index dd33b4459f..9b057a2c9e 100755
--- a/examples/python/dbus/wifi-hotspot.py
+++ b/examples/python/dbus/wifi-hotspot.py
@@ -54,7 +54,7 @@ con = dbus.Dictionary({
'ipv6': s_ip6
})
-def usage():
+def usage():
print("Usage: %s <ifname> [up|down]" % sys.argv[0])
sys.exit(0)
diff --git a/examples/python/gi/device-state-ip4config.py b/examples/python/gi/device-state-ip4config.py
index 32d3b14332..b92a7b090a 100755
--- a/examples/python/gi/device-state-ip4config.py
+++ b/examples/python/gi/device-state-ip4config.py
@@ -27,13 +27,13 @@ from gi.repository import GLib, NM
#
# This example shows how to get NMIP4Config from NMDevice after it is activated.
-#
+#
# We listen to notify::ip4-config glib signal. This signal is trigered by D-Bus
# PropertiesChanged for IP4Config that comes after StateChanged for NMDevice.
#
main_loop = None
-
+
def do_notify(self, property):
print("notify: %s" % property)
ip4cfg = self.get_ip4_config()