From d85bd77116b2cf7e7565a0905b53ff0fa2a5b50e Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Tue, 10 Jan 2023 18:50:57 +0900 Subject: Drop support for python2. Signed-off-by: Michele Calgaro --- dcoppython/test/test2.py | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'dcoppython/test/test2.py') diff --git a/dcoppython/test/test2.py b/dcoppython/test/test2.py index 1a56f917..36456848 100644 --- a/dcoppython/test/test2.py +++ b/dcoppython/test/test2.py @@ -6,23 +6,23 @@ app = pydcop.anyAppCalled( "kspread" ); res = app.default.getDocuments() -print res -print res[0].appname -print res[0].name +print(res) +print(res[0].appname) +print(res[0].name) m = res[0].map() -print m.tableNames() +print(m.tableNames()) x = m.table('Sheet2') if x: - print x - print "====================" - print x._name - print "====================" - print x._name() - print "====================" -else: print "Could not find sheet called Sheet2" - -print "done" + print(x) + print("====================") + print(x._name) + print("====================") + print(x._name()) + print("====================") +else: print("Could not find sheet called Sheet2") + +print("done") -- cgit v1.2.1