You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by xu...@apache.org on 2024/09/23 05:59:37 UTC

(opendal) branch main updated: chore(bindings/python): deprecate via_map method (#5134)

This is an automated email from the ASF dual-hosted git repository.

xuanwo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/opendal.git


The following commit(s) were added to refs/heads/main by this push:
     new ac2e782c0c chore(bindings/python): deprecate via_map method (#5134)
ac2e782c0c is described below

commit ac2e782c0cb1eb4bd6f7d400e29d19c0d479965e
Author: TennyZhuang <zt...@gmail.com>
AuthorDate: Mon Sep 23 13:59:31 2024 +0800

    chore(bindings/python): deprecate via_map method (#5134)
---
 bindings/python/src/operator.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bindings/python/src/operator.rs b/bindings/python/src/operator.rs
index 4bc4050380..54e7345741 100644
--- a/bindings/python/src/operator.rs
+++ b/bindings/python/src/operator.rs
@@ -30,7 +30,7 @@ fn build_operator(
     scheme: ocore::Scheme,
     map: HashMap<String, String>,
 ) -> PyResult<ocore::Operator> {
-    let mut op = ocore::Operator::via_map(scheme, map).map_err(format_pyerr)?;
+    let mut op = ocore::Operator::via_iter(scheme, map).map_err(format_pyerr)?;
     if !op.info().full_capability().blocking {
         let runtime = pyo3_asyncio::tokio::get_runtime();
         let _guard = runtime.enter();