Show More
@@ -12,7 +12,7 b'' | |||
|
12 | 12 | //! |
|
13 | 13 | use cpython::{ |
|
14 | 14 | exc, PyBytes, PyDict, PyErr, PyInt, PyModule, PyResult, PyTuple, Python, |
|
15 | ToPyObject, | |
|
15 | PythonObject, ToPyObject, | |
|
16 | 16 | }; |
|
17 | 17 | use hg::{ |
|
18 | 18 | pack_dirstate, parse_dirstate, utils::copy_into_array, DirstateEntry, |
@@ -123,7 +123,7 b' fn pack_dirstate_wrapper(' | |||
|
123 | 123 | p1: copy_into_array(&p1), |
|
124 | 124 | p2: copy_into_array(&p2), |
|
125 | 125 | }, |
|
126 |
Duration::from_secs(now. |
|
|
126 | Duration::from_secs(now.as_object().extract::<u64>(py)?), | |
|
127 | 127 | ) { |
|
128 | 128 | Ok(packed) => { |
|
129 | 129 | for ( |
General Comments 0
You need to be logged in to leave comments.
Login now