Skip to content

Commit

Permalink
Merge pull request #298 from recurly/interpolate_path_method
Browse files Browse the repository at this point in the history
Use an interpolate_path method
  • Loading branch information
Aaron Suarez authored Jun 18, 2019
2 parents 46d2523 + 04011a2 commit f7fc948
Show file tree
Hide file tree
Showing 3 changed files with 223 additions and 111 deletions.
5 changes: 5 additions & 0 deletions recurly/base_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,8 @@ def _make_request(self, method, path, body, params):

except socket.error as e:
raise NetworkError(e)

def _interpolate_path(self, path, *args):
"""Encodes components and interpolates path"""

return path % tuple(map(urllib.parse.quote, args))
Loading

0 comments on commit f7fc948

Please sign in to comment.