Skip to content

Commit 6575d62

Browse files
Use unquote() directly instead of wrapper (#2415) (#2431)
(cherry picked from commit ef9563c) Co-authored-by: Quentin Pradet <[email protected]>
1 parent 914021f commit 6575d62

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

elasticsearch/_sync/client/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
import base64
1919
import inspect
20+
import urllib.parse
2021
import warnings
2122
from datetime import date, datetime
2223
from functools import wraps
@@ -51,7 +52,6 @@
5152
client_meta_version,
5253
create_user_agent,
5354
parse_cloud_id,
54-
percent_encode,
5555
url_to_node_config,
5656
)
5757

@@ -279,7 +279,7 @@ def _escape(value: Any) -> str:
279279

280280

281281
def _quote(value: Any) -> str:
282-
return percent_encode(_escape(value), ",*")
282+
return urllib.parse.quote(_escape(value), ",*")
283283

284284

285285
def _quote_query(query: Mapping[str, Any]) -> str:

0 commit comments

Comments
 (0)