mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-07-06 05:01:10 -07:00
Fix flake8-docstrings D200 One-line docstring should fit on one line with quotes
This commit is contained in:
parent
a8043d0259
commit
4dd58afaf6
3 changed files with 5 additions and 15 deletions
|
@ -4,9 +4,7 @@ import requests
|
|||
|
||||
|
||||
class GitHub(object):
|
||||
"""
|
||||
Simple api wrapper for the Github API v3.
|
||||
"""
|
||||
"""Simple api wrapper for the Github API v3."""
|
||||
|
||||
def __init__(self, github_repo_user, github_repo, branch='master'):
|
||||
|
||||
|
@ -15,9 +13,7 @@ class GitHub(object):
|
|||
self.branch = branch
|
||||
|
||||
def _access_api(self, path, params=None):
|
||||
"""
|
||||
Access the API at the path given and with the optional params given.
|
||||
"""
|
||||
"""Access API at given an API path and optional parameters."""
|
||||
url = 'https://api.github.com/{path}'.format(path='/'.join(path))
|
||||
data = requests.get(url, params=params, verify=False)
|
||||
return data.json() if data.ok else []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue