@@ -283,9 +283,7 @@ function getindex(o::PyObject, s::AbstractString)
283
283
if ispynull (o)
284
284
throw (ArgumentError (" ref of NULL PyObject" ))
285
285
end
286
- p = disable_sigint () do
287
- ccall ((@pysym :PyObject_GetAttrString ), PyPtr, (PyPtr, Cstring), o, s)
288
- end
286
+ p = ccall ((@pysym :PyObject_GetAttrString ), PyPtr, (PyPtr, Cstring), o, s)
289
287
if p == C_NULL
290
288
pyerr_clear ()
291
289
throw (KeyError (s))
@@ -299,11 +297,8 @@ function setindex!(o::PyObject, v, s::Union{Symbol,AbstractString})
299
297
if ispynull (o)
300
298
throw (ArgumentError (" assign of NULL PyObject" ))
301
299
end
302
- e = disable_sigint () do
303
- ccall ((@pysym :PyObject_SetAttrString ), Cint,
304
- (PyPtr, Cstring, PyPtr), o, s, PyObject (v))
305
- end
306
- if - 1 == e
300
+ if - 1 == ccall ((@pysym :PyObject_SetAttrString ), Cint,
301
+ (PyPtr, Cstring, PyPtr), o, s, PyObject (v))
307
302
pyerr_clear ()
308
303
throw (KeyError (s))
309
304
end
@@ -314,11 +309,8 @@ function haskey(o::PyObject, s::Union{Symbol,AbstractString})
314
309
if ispynull (o)
315
310
throw (ArgumentError (" haskey of NULL PyObject" ))
316
311
end
317
-
318
- return 1 == disable_sigint () do
319
- ccall ((@pysym :PyObject_HasAttrString ), Cint,
320
- (PyPtr, Cstring), o, s)
321
- end
312
+ return 1 == ccall ((@pysym :PyObject_HasAttrString ), Cint,
313
+ (PyPtr, Cstring), o, s)
322
314
end
323
315
324
316
# ########################################################################
0 commit comments