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

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

authorJulien Cristau <julien.cristau@logilab.fr>
changesetdb5bd300381a
branchdefault
phasedraft
hiddenyes
parent revision#479ac309ce46 [schema2sql] encode string before passing it to md5
child revision#9ec07467c3fe [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 db5bd300381ac470649a34a71a0af7eadefaa71d
# Parent 479ac309ce46c6b8a36a2fc72b00a36d99ec5553
[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)