From f75fae3bd1cfb04d64d797d22a9881ba7e27402e Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Wed, 4 Jan 2023 23:56:58 +0900 Subject: Drop python2 support. Signed-off-by: Michele Calgaro --- app_templates/tdeioslave/src/tdeioslave.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'app_templates') diff --git a/app_templates/tdeioslave/src/tdeioslave.py b/app_templates/tdeioslave/src/tdeioslave.py index 4146b82..17f9ee8 100755 --- a/app_templates/tdeioslave/src/tdeioslave.py +++ b/app_templates/tdeioslave/src/tdeioslave.py @@ -355,7 +355,7 @@ class SlaveClass(TDEIO.SlaveBase): ############################################################################ def debug(self,msg): if DEBUG == 0: return - print "tdeioslave:"+str(msg)+"\n" + print("tdeioslave:"+str(msg)+"\n") sys.stdout.flush() ############################################################################ @@ -450,7 +450,7 @@ class RAMDir(object): atom = TDEIO.UDSAtom() atom.m_uds = TDEIO.UDS_ACCESS # The usual octal permission information (rw-r--r-- in this case). - atom.m_long = 0644 + atom.m_long = 0o644 entry.append(atom) # If the stat method is implemented then entries _must_ include @@ -496,7 +496,7 @@ class RAMDir(object): def debug(self,msg): if DEBUG == 0: return - print "tdeioslave:"+str(msg)+"\n" + print("tdeioslave:"+str(msg)+"\n") sys.stdout.flush() ############################################################################ @@ -583,7 +583,7 @@ class RAMFile(object): atom = TDEIO.UDSAtom() atom.m_uds = TDEIO.UDS_ACCESS # The usual octal permission information (rw-r--r-- in this case). - atom.m_long = 0644 + atom.m_long = 0o644 entry.append(atom) # If the stat method is implemented then entries _must_ include -- cgit v1.2.1