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/automate_presentation.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'dcoppython/test/automate_presentation.py') diff --git a/dcoppython/test/automate_presentation.py b/dcoppython/test/automate_presentation.py index 0c75e108..a1833d2e 100755 --- a/dcoppython/test/automate_presentation.py +++ b/dcoppython/test/automate_presentation.py @@ -7,14 +7,14 @@ import pydcop app = pydcop.anyAppCalled( "kpresenter" ) -if not app: raise RuntimeError, "Couldn't find a running KPresenter" +if not app: raise RuntimeError("Couldn't find a running KPresenter") doc = app.KoApplicationIface.getDocuments()[0] view = doc.view(0) startAction = view.action( "screen_start" ) -print "Starting Presentation %s" % doc.url() +print("Starting Presentation %s" % doc.url()) startAction.activate() @@ -27,4 +27,4 @@ while startAction.enabled() == 0: act.activate() view.screenStop() -print "Presentation finished." +print("Presentation finished.") -- cgit v1.2.3