We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 914021f commit 6575d62Copy full SHA for 6575d62
elasticsearch/_sync/client/utils.py
@@ -17,6 +17,7 @@
17
18
import base64
19
import inspect
20
+import urllib.parse
21
import warnings
22
from datetime import date, datetime
23
from functools import wraps
@@ -51,7 +52,6 @@
51
52
client_meta_version,
53
create_user_agent,
54
parse_cloud_id,
- percent_encode,
55
url_to_node_config,
56
)
57
@@ -279,7 +279,7 @@ def _escape(value: Any) -> str:
279
280
281
def _quote(value: Any) -> str:
282
- return percent_encode(_escape(value), ",*")
+ return urllib.parse.quote(_escape(value), ",*")
283
284
285
def _quote_query(query: Mapping[str, Any]) -> str:
0 commit comments