[reader] don't use 3-expr raise syntax

It's gone in python3. Related to #267910.

authorJulien Cristau <julien.cristau@logilab.fr>
changeset1eba2a7d0f1d
branchdefault
phasepublic
hiddenno
parent revision#87f70abdbc8c [schema2sql] encode string before passing it to md5
child revision#189b9a1ba775 [reader] py3k removed execfile
files modified by this revision
reader.py
# HG changeset patch
# User Julien Cristau <julien.cristau@logilab.fr>
# Date 1413453133 -7200
# Thu Oct 16 11:52:13 2014 +0200
# Node ID 1eba2a7d0f1dbc0ccfdd1e61182a97f0597d5983
# Parent 87f70abdbc8c429e490b5c274bc58f773781c421
[reader] don't use 3-expr raise syntax

It's gone in python3. Related to #267910.

diff --git a/reader.py b/reader.py
@@ -126,11 +126,11 @@
1                              remove_unused_rtypes=remove_unused_rtypes,
2                              post_build_callbacks=self.post_build_callbacks)
3              except Exception as ex:
4                  if not hasattr(ex, 'schema_files'):
5                      ex.schema_files = self.loaded_files
6 -                raise ex, None, sys.exc_info()[-1]
7 +                raise
8          finally:
9              # cleanup sys.modules from schema modules
10              # ensure we're only cleaning schema [sub]modules
11              directories = [(not directory.endswith(self.main_schema_directory)
12                              and join(directory, self.main_schema_directory)