File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -192,9 +192,10 @@ function init_jlwrap_any()
192
192
ValueBase.__setattr__(self, k, v)
193
193
except AttributeError:
194
194
if k.startswith("__") and k.endswith("__"):
195
- raise AttributeError(k)
196
- else:
197
- self._jl_callmethod($(pyjl_methodnum (pyjlany_setattr)) , k, v)
195
+ raise
196
+ else:
197
+ return
198
+ self._jl_callmethod($(pyjl_methodnum (pyjlany_setattr)) , k, v)
198
199
def __dir__(self):
199
200
return ValueBase.__dir__(self) + self._jl_callmethod($(pyjl_methodnum (pyjlany_dir)) )
200
201
def __call__(self, *args, **kwargs):
Original file line number Diff line number Diff line change @@ -99,9 +99,10 @@ function init_jlwrap_raw()
99
99
ValueBase.__setattr__(self, k, v)
100
100
except AttributeError:
101
101
if k.startswith("__") and k.endswith("__"):
102
- raise AttributeError(k)
103
- else:
104
- self._jl_callmethod($(pyjl_methodnum (pyjlraw_setattr)) , k, v)
102
+ raise
103
+ else:
104
+ return
105
+ self._jl_callmethod($(pyjl_methodnum (pyjlraw_setattr)) , k, v)
105
106
def __dir__(self):
106
107
return ValueBase.__dir__(self) + self._jl_callmethod($(pyjl_methodnum (pyjlraw_dir)) )
107
108
def __call__(self, *args, **kwargs):
You can’t perform that action at this time.
0 commit comments