summaryrefslogtreecommitdiff
path: root/odoo/tools/xml_utils.py
diff options
context:
space:
mode:
authorXavier Morel <xmo@odoo.com>2017-05-08 16:15:02 +0200
committerXavier Morel <xmo@odoo.com>2017-05-12 16:15:39 +0200
commit3dd3790597e84186d922b798aa8bb4650513ce4b (patch)
tree0a5fe19bf449ed157386d613489975f9a48dd98c /odoo/tools/xml_utils.py
parent021de21e8cdcf35276c945d8070d04435fa1a19c (diff)
[FIX] P3: raise exception with existing traceback
In Python 2, to raise a new exception but reuse a traceback requires a special form of ``raise`` (``raise etype, evalue, tb``). In Python 3, this is now done via a ``with_traceback`` method on exception objects. However this requires a bit of trickery as the former is invalid syntax in Python 3, hence pycompat bridge created via an exec for Python 2.
Diffstat (limited to 'odoo/tools/xml_utils.py')
0 files changed, 0 insertions, 0 deletions