[gcompris] minor: little python syntax change to support python 2.5
- From: Bruno Coudoin <bcoudoin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gcompris] minor: little python syntax change to support python 2.5
- Date: Thu, 17 May 2012 20:37:28 +0000 (UTC)
commit 4c9339fe5923606be70c0e09d361abfaf5c1ed56
Author: Bruno Coudoin <bruno coudoin free fr>
Date: Thu May 17 22:36:52 2012 +0200
minor: little python syntax change to support python 2.5
src/findit-activity/findit.py | 2 +-
src/louis_braille-activity/louis_braille.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/findit-activity/findit.py b/src/findit-activity/findit.py
index 4d89426..872b811 100644
--- a/src/findit-activity/findit.py
+++ b/src/findit-activity/findit.py
@@ -316,7 +316,7 @@ class Gcompris_findit:
format(filename=filename),
None)
return False
- except ConfigParser.Error as error:
+ except ConfigParser.Error, error:
gcompris.utils.dialog(_("Failed to parse data set '{filename}'"
" with error:\n{error}").\
format(filename=filename, error=error),
diff --git a/src/louis_braille-activity/louis_braille.py b/src/louis_braille-activity/louis_braille.py
index faf89a1..0176110 100644
--- a/src/louis_braille-activity/louis_braille.py
+++ b/src/louis_braille-activity/louis_braille.py
@@ -84,7 +84,7 @@ class Gcompris_louis_braille:
gcompris.utils.dialog(_("Cannot find the file '{filename}'").format(filename=filename),None)
return False
- except ConfigParser.Error as error:
+ except ConfigParser.Error, error:
gcompris.utils.dialog(_("Failed to parse data set '{filename}' with error:\n{error}").
format(filename=filename, error=error), None)
return False
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]