|
8 | 8 | //! [PEP-0492](https://www.python.org/dev/peps/pep-0492/)
|
9 | 9 | //!
|
10 | 10 |
|
11 |
| -use callback::PyObjectCallbackConverter; |
12 |
| -use class::methods::PyMethodDef; |
13 |
| -use err::PyResult; |
14 |
| -use ffi; |
15 |
| -use typeob::PyTypeInfo; |
| 11 | +use crate::callback::PyObjectCallbackConverter; |
| 12 | +use crate::class::methods::PyMethodDef; |
| 13 | +use crate::err::PyResult; |
| 14 | +use crate::ffi; |
| 15 | +use crate::typeob::PyTypeInfo; |
16 | 16 |
|
17 | 17 | /// Python Async/Await support interface.
|
18 | 18 | ///
|
@@ -61,30 +61,30 @@ pub trait PyAsyncProtocol<'p>: PyTypeInfo {
|
61 | 61 | }
|
62 | 62 |
|
63 | 63 | pub trait PyAsyncAwaitProtocol<'p>: PyAsyncProtocol<'p> {
|
64 |
| - type Success: ::IntoPyObject; |
| 64 | + type Success: crate::IntoPyObject; |
65 | 65 | type Result: Into<PyResult<Self::Success>>;
|
66 | 66 | }
|
67 | 67 |
|
68 | 68 | pub trait PyAsyncAiterProtocol<'p>: PyAsyncProtocol<'p> {
|
69 |
| - type Success: ::IntoPyObject; |
| 69 | + type Success: crate::IntoPyObject; |
70 | 70 | type Result: Into<PyResult<Self::Success>>;
|
71 | 71 | }
|
72 | 72 |
|
73 | 73 | pub trait PyAsyncAnextProtocol<'p>: PyAsyncProtocol<'p> {
|
74 |
| - type Success: ::IntoPyObject; |
| 74 | + type Success: crate::IntoPyObject; |
75 | 75 | type Result: Into<PyResult<Option<Self::Success>>>;
|
76 | 76 | }
|
77 | 77 |
|
78 | 78 | pub trait PyAsyncAenterProtocol<'p>: PyAsyncProtocol<'p> {
|
79 |
| - type Success: ::IntoPyObject; |
| 79 | + type Success: crate::IntoPyObject; |
80 | 80 | type Result: Into<PyResult<Self::Success>>;
|
81 | 81 | }
|
82 | 82 |
|
83 | 83 | pub trait PyAsyncAexitProtocol<'p>: PyAsyncProtocol<'p> {
|
84 |
| - type ExcType: ::FromPyObject<'p>; |
85 |
| - type ExcValue: ::FromPyObject<'p>; |
86 |
| - type Traceback: ::FromPyObject<'p>; |
87 |
| - type Success: ::IntoPyObject; |
| 84 | + type ExcType: crate::FromPyObject<'p>; |
| 85 | + type ExcValue: crate::FromPyObject<'p>; |
| 86 | + type Traceback: crate::FromPyObject<'p>; |
| 87 | + type Success: crate::IntoPyObject; |
88 | 88 | type Result: Into<PyResult<Self::Success>>;
|
89 | 89 | }
|
90 | 90 |
|
@@ -189,10 +189,10 @@ impl<'p, T> PyAsyncAnextProtocolImpl for T where T: PyAsyncProtocol<'p> {}
|
189 | 189 | #[cfg(Py_3)]
|
190 | 190 | mod anext {
|
191 | 191 | use super::{PyAsyncAnextProtocol, PyAsyncAnextProtocolImpl};
|
192 |
| - use callback::CallbackConverter; |
193 |
| - use conversion::IntoPyObject; |
194 |
| - use ffi; |
195 |
| - use python::{IntoPyPointer, Python}; |
| 192 | + use crate::callback::CallbackConverter; |
| 193 | + use crate::conversion::IntoPyObject; |
| 194 | + use crate::ffi; |
| 195 | + use crate::python::{IntoPyPointer, Python}; |
196 | 196 | use std::ptr;
|
197 | 197 |
|
198 | 198 | pub struct IterANextResultConverter;
|
|
0 commit comments