summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Asleson <tasleson@redhat.com>2016-10-11 10:43:41 -0500
committerTony Asleson <tasleson@redhat.com>2016-10-11 13:16:57 -0500
commit595af62ebd8eca6b95266f617df67528f3b70fd8 (patch)
treedfb0315be69da5fc22bbb049703ef147ccf8592d
parent4fab8339207fd8846e04e775897a7ba7a3cd074c (diff)
downloadlvm2-595af62ebd8eca6b95266f617df67528f3b70fd8.tar.gz
lvmdbustest.py: Use more compatible syntax
-rwxr-xr-xtest/dbus/lvmdbustest.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/dbus/lvmdbustest.py b/test/dbus/lvmdbustest.py
index d2222641d..1991c9466 100755
--- a/test/dbus/lvmdbustest.py
+++ b/test/dbus/lvmdbustest.py
@@ -29,8 +29,9 @@ else:
bus = dbus.SystemBus(mainloop=DBusGMainLoop())
-def std_err_print(*args, **kwargs):
- print(*args, file=sys.stderr, **kwargs)
+def std_err_print(*args):
+ sys.stderr.write(' '.join(map(str, args)) + '\n')
+ sys.stderr.flush()
def get_objects():