8000 Revise all _patch calls. · jsullivanlive/github3.py@bb4b730 · GitHub
[go: up one dir, main page]

Skip to content 10000

Commit bb4b730

Browse files
committed
Revise all _patch calls.
1 parent 86fefaf commit bb4b730

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

github3/gists.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ def edit(self, description='', files={}):
166166
if files:
167167
data['files'] = files
168168
if data:
169-
json = self._json(self._patch(self._api, dumps(data)), 200)
169+
json = self._json(self._patch(self._api, data=dumps(data)), 200)
170170
if json:
171171
self._update_(json)
172172
return True

github3/git.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def update(self, sha, force=False):
169169
:returns: bool
170170
"""
171171
data = dumps({'sha': sha, 'force': force})
172-
json = self._json(self._patch(self._api, data), 200)
172+
json = self._json(self._patch(self._api, data=data), 200)
173173
if json:
174174
self._update_(json)
175175
return True

github3/orgs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def edit(self, name, permission=''):
7070
"""
7171
if name:
7272
data = dumps({'name': name, 'permission': permission})
73-
json = self._json(self._patch(self._api, data), 200)
73+
json = self._json(self._patch(self._api, data=data), 200)
7474
if json:
7575
self._update_(json)
7676
return True
@@ -312,7 +312,7 @@ def edit(self,
312312
"""
313313
data = dumps({'billing_email': billing_email, 'company': company,
314314
'email': email, 'location': location, 'name': name})
315-
json = self._json(self._patch(self._api, data), 200)
315+
json = self._json(self._patch(self._api, data=data), 200)
316316
if json:
317317
self._update_(json)
318318
return True

github3/pulls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ def update(self, title='', body='', state=''):
337337
:returns: bool
338338
"""
339339
data = dumps({'title': title, 'body': body, 'state': state})
340-
json = self._json(self._patch(self._api, data), 200)
340+
json = self._json(self._patch(self._api, data=data), 200)
341341
if json:
342342
self._update_(json)
343343
return True

0 commit comments

Comments
 (0)
0