Skip to content

Commit

Permalink
Use an interpolate_path method
Browse files Browse the repository at this point in the history
  • Loading branch information
bhelx committed Jun 18, 2019
1 parent 46d2523 commit 04011a2
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 04011a2

Please sign in to comment.