diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-01-10 18:50:57 +0900 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2023-01-13 03:28:05 +0100 |
commit | d85bd77116b2cf7e7565a0905b53ff0fa2a5b50e (patch) | |
tree | 4a50744dcf8fbfeee8098646bb75332b7e1bfaec /dcoppython/test/test2.py | |
parent | 3b188e184dc679e04975fbc2b572287fdcff0cca (diff) | |
download | tdebindings-d85bd77116b2cf7e7565a0905b53ff0fa2a5b50e.tar.gz tdebindings-d85bd77116b2cf7e7565a0905b53ff0fa2a5b50e.zip |
Drop support for python2.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'dcoppython/test/test2.py')
-rw-r--r-- | dcoppython/test/test2.py | 26 |
1 files changed, 13 insertions, 13 deletions
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") |