[library-web] s/e/exception as it collides with the function main argument



commit 62c94a8369200dd7155f09d2175f894e52eaa5db
Author: Andrea Veri <av gnome org>
Date:   Tue Feb 25 16:39:17 2020 +0000

    s/e/exception as it collides with the function main argument

 src/modtypes/mallard.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/modtypes/mallard.py b/src/modtypes/mallard.py
index 0800706..daee70a 100644
--- a/src/modtypes/mallard.py
+++ b/src/modtypes/mallard.py
@@ -39,8 +39,8 @@ from base import DocModule
 def dup_node(e):
     try:
         return ET.fromstring(ET.tostring(e, encoding='utf-8'))
-    except xml.etree.ElementTree.ParseError as e:
-        print e
+    except xml.etree.ElementTree.ParseError as exception:
+        print exception
 
 
 MAL_NS = 'http://projectmallard.org/1.0/'


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]