diff --git a/g15ladi b/g15ladi index 5ef0de3..3b39800 100755 --- a/g15ladi +++ b/g15ladi @@ -57,7 +57,7 @@ class g15composer (object): while not os.access(self.pipe_filename, os.F_OK): #print "Waiting pipe to appear..." time.sleep(1) - self.pipe = file(self.pipe_filename, "w") + self.pipe = open(self.pipe_filename, "w") os.remove(self.pipe_filename) #print "pipe unlinked" @@ -189,8 +189,8 @@ class jackctl_g15(object): status_line += " started in non-realtime mode" else: status_line += " stopped" - except Exception, e: - print repr(e) + except Exception as e: + print(repr(e)) status_line = "JACK cannot be connected" if self.jack: self.g15.clear(False) diff --git a/wmladi b/wmladi index 9b4fcd8..474adee 100755 --- a/wmladi +++ b/wmladi @@ -163,10 +163,10 @@ class wmladi (wmoo.Application, LadiMenu, LadiApp): self.clear_line(5) self.started = False self.clear_diagnose_text() - except Exception, e: + except Exception as e: self.set_diagnose_text(repr(e)) if debug: - print repr (e) + print(repr(e)) self.set_line(0, "JACK") self.set_line(1, "is sick") self.clear_line(2) @@ -243,8 +243,8 @@ class wmladi (wmoo.Application, LadiMenu, LadiApp): data=None, button=3, activate_time=0) - except Exception, e: - print repr(e) + except Exception as e: + print(repr(e)) pass if __name__ == '__main__':