mirror of
https://github.com/HackPlan/atom-shell.git
synced 2026-05-21 14:29:15 +08:00
💄 Fix violations against pylint.
This commit is contained in:
@@ -17,7 +17,7 @@ class GitHub:
|
||||
def __getattr__(self, attr):
|
||||
return _Callable(self, '/%s' % attr)
|
||||
|
||||
def _http(self, method, path, **kw):
|
||||
def send(self, method, path, **kw):
|
||||
if not 'headers' in kw:
|
||||
kw['headers'] = dict()
|
||||
headers = kw['headers']
|
||||
@@ -47,7 +47,7 @@ class _Executable:
|
||||
self._path = path
|
||||
|
||||
def __call__(self, **kw):
|
||||
return self._gh._http(self._method, self._path, **kw)
|
||||
return self._gh.send(self._method, self._path, **kw)
|
||||
|
||||
|
||||
class _Callable(object):
|
||||
|
||||
Reference in New Issue
Block a user