From 946f88c762f4b368ba8154dca88cd6ef7422885b Mon Sep 17 00:00:00 2001
From: Marco Biasini <marco.biasini@unibas.ch>
Date: Mon, 9 May 2011 12:09:26 +0200
Subject: [PATCH] use "old-style" exception catching code

"except ExceptionType as var" is only supported in newer versions
of Python
---
 modules/gui/pymod/helpwidget.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/gui/pymod/helpwidget.py b/modules/gui/pymod/helpwidget.py
index 5322bbe66..39e8602a8 100644
--- a/modules/gui/pymod/helpwidget.py
+++ b/modules/gui/pymod/helpwidget.py
@@ -32,7 +32,7 @@ class Help:
     else:
       try:
         s=d.document(pydoc.resolve(what)[0])
-      except ImportError as detail:
+      except ImportError, detail:
         s=str(detail)
       doc_widget.doctext.setHtml(s)
       doc_widget.searchbox.setText('')
-- 
GitLab