Commit 1b63d9f7 authored by Pavel Vainerman's avatar Pavel Vainerman Committed by Pavel Vainerman

[python3]: fixed UException (base on BaseException)

parent 70a3ac81
......@@ -91,7 +91,7 @@ except __builtin__.Exception:
pass
_newclass = 0
class UException(_object):
class UException(BaseException, _object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, UException, name, value)
__swig_getmethods__ = {}
......@@ -99,6 +99,7 @@ class UException(_object):
__repr__ = _swig_repr
def __init__(self, *args):
BaseException.__init__(self, *args)
this = _pyUExceptions.new_UException(*args)
try:
self.this.append(this)
......
......@@ -2,6 +2,7 @@
# -*- coding: utf-8 -*-
import sys
import time
sys.path.append('../../')
sys.path.append('../../lib/pyUniSet/')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment