Skip to content

Commit 0e7f4b4

Browse files
Remove comment
1 parent e2686d4 commit 0e7f4b4

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/types/any.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -980,8 +980,6 @@ impl<'py> PyAnyMethods<'py> for Bound<'py, PyAny> {
980980
where
981981
N: IntoPyObject<'py, Target = PyString>,
982982
{
983-
// PyObject_HasAttr suppresses all exceptions, which was the behaviour of `hasattr` in Python 2.
984-
// Use an implementation which suppresses only AttributeError, which is consistent with `hasattr` in Python 3.
985983
let result = unsafe {
986984
ffi::compat::PyObject_HasAttrWithError(
987985
self.as_ptr(),

0 commit comments

Comments
 (0)