Skip to content

Commit

Permalink
Update ignite.py
Browse files Browse the repository at this point in the history
  • Loading branch information
yumok committed Oct 5, 2017
1 parent dadc14e commit 85384e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ignite.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ def _normalize_resp_dict(resp_dict):

def make_command(self, cmd, params=None):
params = {} if params is None else params
params = urllib.urlencode(
{k: v for k, v in params.iteritems() if k and v})
params = urllib.parse.urlencode(
{k: v for k, v in iter(params.items()) if k and v})
return requests.get('{endpoint}?cmd={command}&{params}'.format(endpoint=self._endpoint, command=cmd, params=params)).json()

def log(self, from_=None, path=None, to=None):
Expand Down

1 comment on commit 85384e8

@yumok
Copy link
Owner Author

@yumok yumok commented on 85384e8 Oct 5, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make it work in python3

Please sign in to comment.