[gnome-keysign: 46/75] babelglade: Port exception syntax to Python 3



commit 6ad84cae4f76ed14a5f203cac6679860f8817419
Author: Tobias Mueller <muelli cryptobitch de>
Date:   Sun Jul 23 14:51:14 2017 +0200

    babelglade: Port exception syntax to Python 3
    
    ======================================================================
    ERROR: Failure: SyntaxError (invalid syntax (__init__.py, line 59))
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/tmp/gks3/lib/python3.5/site-packages/nose/failure.py", line 39, in runTest
        raise self.exc_val.with_traceback(self.tb)
      File "/tmp/gks3/lib/python3.5/site-packages/nose/loader.py", line 418, in loadTestsFromName
        addr.filename, addr.module)
      File "/tmp/gks3/lib/python3.5/site-packages/nose/importer.py", line 47, in importFromPath
        return self.importFromDir(dir_path, fqname)
      File "/tmp/gks3/lib/python3.5/site-packages/nose/importer.py", line 94, in importFromDir
        mod = load_module(part_fqname, fh, filename, desc)
      File "/tmp/gks3/lib64/python3.5/imp.py", line 244, in load_module
        return load_package(name, filename)
      File "/tmp/gks3/lib64/python3.5/imp.py", line 216, in load_package
        return _load(spec)
      File "<frozen importlib._bootstrap>", line 693, in _load
      File "<frozen importlib._bootstrap>", line 673, in _load_unlocked
      File "<frozen importlib._bootstrap_external>", line 661, in exec_module
      File "<frozen importlib._bootstrap_external>", line 767, in get_code
      File "<frozen importlib._bootstrap_external>", line 727, in source_to_code
      File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
      File "/tmp/gnome-keysign/babelglade/__init__.py", line 59
        except expat.ExpatError, e:
                               ^
    SyntaxError: invalid syntax

 babelglade/__init__.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/babelglade/__init__.py b/babelglade/__init__.py
index bec656d..9df17d7 100644
--- a/babelglade/__init__.py
+++ b/babelglade/__init__.py
@@ -56,7 +56,7 @@ class GladeParser(object):
                 self._queue = []
                 if done:
                     break
-        except expat.ExpatError, e:
+        except expat.ExpatError as e:
             msg = str(e)
             raise ParseError(msg, self.filename, e.lineno, e.offset)
 


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