11# This file was automatically generated by SWIG (http://www.swig.org).
2- # Version 3.0.0
2+ # Version 3.0.5
33#
44# Do not make changes to this file unless you know what you are doing--modify
55# the SWIG interface file instead.
99
1010
1111from sys import version_info
12- if version_info >= (2 ,6 , 0 ):
12+ if version_info >= (2 , 6 , 0 ):
1313 def swig_import_helper ():
1414 from os .path import dirname
1515 import imp
@@ -33,45 +33,66 @@ def swig_import_helper():
3333try :
3434 _swig_property = property
3535except NameError :
36- pass # Python < 2.2 doesn't have 'property'.
37- def _swig_setattr_nondynamic (self ,class_type ,name ,value ,static = 1 ):
38- if (name == "thisown" ): return self .this .own (value )
36+ pass # Python < 2.2 doesn't have 'property'.
37+
38+
39+ def _swig_setattr_nondynamic (self , class_type , name , value , static = 1 ):
40+ if (name == "thisown" ):
41+ return self .this .own (value )
3942 if (name == "this" ):
4043 if type (value ).__name__ == 'SwigPyObject' :
4144 self .__dict__ [name ] = value
4245 return
43- method = class_type .__swig_setmethods__ .get (name ,None )
44- if method : return method (self ,value )
46+ method = class_type .__swig_setmethods__ .get (name , None )
47+ if method :
48+ return method (self , value )
4549 if (not static ):
46- self .__dict__ [name ] = value
50+ if _newclass :
51+ object .__setattr__ (self , name , value )
52+ else :
53+ self .__dict__ [name ] = value
4754 else :
4855 raise AttributeError ("You cannot add attributes to %s" % self )
4956
50- def _swig_setattr (self ,class_type ,name ,value ):
51- return _swig_setattr_nondynamic (self ,class_type ,name ,value ,0 )
5257
53- def _swig_getattr (self ,class_type ,name ):
54- if (name == "thisown" ): return self .this .own ()
55- method = class_type .__swig_getmethods__ .get (name ,None )
56- if method : return method (self )
57- raise AttributeError (name )
58+ def _swig_setattr (self , class_type , name , value ):
59+ return _swig_setattr_nondynamic (self , class_type , name , value , 0 )
60+
61+
62+ def _swig_getattr_nondynamic (self , class_type , name , static = 1 ):
63+ if (name == "thisown" ):
64+ return self .this .own ()
65+ method = class_type .__swig_getmethods__ .get (name , None )
66+ if method :
67+ return method (self )
68+ if (not static ):
69+ return object .__getattr__ (self , name )
70+ else :
71+ raise AttributeError (name )
72+
73+ def _swig_getattr (self , class_type , name ):
74+ return _swig_getattr_nondynamic (self , class_type , name , 0 )
75+
5876
5977def _swig_repr (self ):
60- try : strthis = "proxy of " + self .this .__repr__ ()
61- except : strthis = ""
78+ try :
79+ strthis = "proxy of " + self .this .__repr__ ()
80+ except :
81+ strthis = ""
6282 return "<%s.%s; %s >" % (self .__class__ .__module__ , self .__class__ .__name__ , strthis ,)
6383
6484try :
6585 _object = object
6686 _newclass = 1
6787except AttributeError :
68- class _object : pass
88+ class _object :
89+ pass
6990 _newclass = 0
7091
7192
7293
73- def add (* args ):
74- return _add .add (* args )
94+ def add (x , y ):
95+ return _add .add (x , y )
7596add = _add .add
7697# This file is compatible with both classic and new-style classes.
7798
0 commit comments