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>
This commit is contained in:

committed by
Thomas Haller

parent
2171084378
commit
4213c17b44
@@ -77,5 +77,5 @@ if __name__ == "__main__":
|
||||
client.deactivate_connection(ac, None)
|
||||
sys.stdout.write("\033[32m -> succeeded\033[0m\n")
|
||||
except Exception, e:
|
||||
sys.stdout.write("\033[31m -> failed\033[0m (%s)\n" % e.message)
|
||||
sys.stderr.write("\033[31m -> failed\033[0m (%s)\n" % e.message)
|
||||
|
||||
|
Reference in New Issue
Block a user