summaryrefslogtreecommitdiff
path: root/examples/python/dbus
diff options
context:
space:
mode:
authorPetr Vorel <petr.vorel@gmail.com>2015-03-10 06:18:10 +0100
committerThomas Haller <thaller@redhat.com>2015-03-10 12:17:59 +0100
commit4213c17b44dd058344757465c5cff00cd6e990ac (patch)
tree8e157b0c6dfbaa1e91e757e58c85cabda6872c80 /examples/python/dbus
parent217108437808b35aea5bd9051a5c2c5112da2ac4 (diff)
downloadNetworkManager-4213c17b44dd058344757465c5cff00cd6e990ac.tar.gz
examples: python: print into stderr
https://mail.gnome.org/archives/networkmanager-list/2015-March/msg00024.html Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
Diffstat (limited to 'examples/python/dbus')
-rwxr-xr-xexamples/python/dbus/vpn.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/python/dbus/vpn.py b/examples/python/dbus/vpn.py
index 8713f19bb6..d60e470e05 100755
--- a/examples/python/dbus/vpn.py
+++ b/examples/python/dbus/vpn.py
@@ -106,7 +106,7 @@ def activate_connection(connection_path, device_path):
sys.exit(0)
def error_handler(*args):
- print "Error activating device: %s" % args
+ sys.stderr.write("Error activating device: %s\n" % args)
sys.exit(1)
bus = dbus.SystemBus()