From 98fb7fe1f0edec16ecd405707cc903d2b4a7dc40 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Mon, 28 Mar 2016 00:06:52 +0200 Subject: First step toward python3 --- mat-gui | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'mat-gui') diff --git a/mat-gui b/mat-gui index feccbd2..fc927db 100755 --- a/mat-gui +++ b/mat-gui @@ -451,7 +451,10 @@ non-anonymised) file from output archive')) if __name__ == '__main__': - gettext.install('MAT', unicode=True) + try: + gettext.install('MAT', unicode=True) + except TypeError: # python 3 + gettext.install('MAT') gui = GUI() -- cgit v1.3