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/dcopserver/gen.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dcoppython/test/dcopserver') diff --git a/dcoppython/test/dcopserver/gen.py b/dcoppython/test/dcopserver/gen.py index 4d1b8ff2..f0c952e5 100644 --- a/dcoppython/test/dcopserver/gen.py +++ b/dcoppython/test/dcopserver/gen.py @@ -7,7 +7,7 @@ inc_exceptions = {'TQDate': None, 'TQTime': None, 'KURL' : 'kurl'} iface_inc_list = ['dcopobject'] iface_inc_list += [ t.lower() for t in type_list if t[0]=='Q' and t not in inc_exceptions ] -iface_inc_list += inc_exceptions.values() +iface_inc_list += list(inc_exceptions.values()) iface_inc_1 = ['class DCOPDemoIface : virtual public DCOPObject {', ' K_DCOP', @@ -39,7 +39,7 @@ files = {'tdedcoptest_iface.h': iface_inc, 'cpp_inc.h': cpp_inc } -for (fname,data) in files.items(): +for (fname,data) in list(files.items()): outf = file(fname,'w') for d in data: outf.write(d+'\n') -- cgit v1.2.1