diff options
author | Thomas Haller <thaller@redhat.com> | 2018-02-02 10:55:34 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2018-02-07 13:32:04 +0100 |
commit | e4839accf5a5b470b9bf2287f0269ddc4ce0f91b (patch) | |
tree | bdc92d91b24d7b7fb25d8b9652dbe08d08e57cea /examples | |
parent | ca7273b3e250e46451d93e75a2234c403eed38aa (diff) | |
download | NetworkManager-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-x | examples/python/dbus/wifi-hotspot.py | 2 | ||||
-rwxr-xr-x | examples/python/gi/device-state-ip4config.py | 4 |
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() |