changeset 49914 | 58074252db3c |
parent 48021 | 627cd8f33db0 |
child 50535 | a8531bd9210b |
49913:c15b415d1bff | 49914:58074252db3c |
---|---|
96 ) |
96 ) |
97 } |
97 } |
98 |
98 |
99 def __contains__(&self, item: PyObject) -> PyResult<bool> { |
99 def __contains__(&self, item: PyObject) -> PyResult<bool> { |
100 Ok(self.inner(py).borrow().contains(HgPath::new( |
100 Ok(self.inner(py).borrow().contains(HgPath::new( |
101 item.extract::<PyBytes>(py)?.data(py).as_ref(), |
101 item.extract::<PyBytes>(py)?.data(py), |
102 ))) |
102 ))) |
103 } |
103 } |
104 }); |
104 }); |
105 |
105 |
106 impl Dirs { |
106 impl Dirs { |