Skip to content

Commit 42b8e6e

Browse files
author
Mike Kistler
committed
Add utility method for encoding path variables
1 parent f0fda95 commit 42b8e6e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

watson_developer_cloud/watson_service.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,10 @@ def _convert_model(val):
227227
return val._to_dict()
228228
return val
229229

230+
@staticmethod
231+
def _encode_path_vars(*args):
232+
return (requests.utils.quote(x, safe='') for x in args)
233+
230234
@staticmethod
231235
def _get_error_message(response):
232236
"""

0 commit comments

Comments
 (0)