8000 Fix up new pycodestyle warnings · pythonthings/github3.py@767e598 · GitHub
[go: up one dir, main page]

Skip to content

Commit 767e598

Browse files
committed
Fix up new pycodestyle warnings
1 parent 5c9ac69 commit 767e598

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

github3/api.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ def enterprise_login(username=None, password=None, token=None, url=None,
100100

101101
def emojis():
102102
return gh.emojis()
103+
104+
103105
emojis.__doc__ = gh.emojis.__doc__
104106

105107

@@ -401,6 +403,8 @@ def octocat(say=None):
401403

402404
def organization(name):
403405
return gh.organization(name)
406+
407+
404408
organization.__doc__ = gh.organization.__doc__
405409

406410

@@ -418,11 +422,15 @@ def pull_request(owner, repository, number):
418422

419423
def rate_limit():
420424
return gh.rate_limit()
425+
426+
421427
rate_limit.__doc__ = gh.rate_limit.__doc__
422428

423429

424430
def repository(owner, repository):
425431
return gh.repository(owner, repository)
432+
433+
426434
repository.__doc__ = gh.repository.__doc__
427435

428436

@@ -636,6 +644,8 @@ def search_users(query, sort=None, order=None, per_page=None,
636644

637645
def user(username):
638646
return gh.user(username)
647+
648+
639649
user.__doc__ = gh.user.__doc__
640650

641651

github3/decorators.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ def generate_fake_error_response(msg, status_code=401, encoding='utf-8'):
9494
r._content = r.raw.read()
9595
return r
9696

97+
9798
# Use mock decorators when generating documentation, so all functino signatures
9899
# are displayed correctly
99100
if os.getenv('GENERATING_DOCUMENTATION', None) == 'github3':

tests/unit/test_github.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ def url_for(path=''):
1010
"""Simple function to generate URLs with the base GitHub URL."""
1111
return 'https://api.github.com/' + path.strip('/')
1212

13+
1314
enterprise_url_for = helper.create_url_helper('https://enterprise.github3.com')
1415

1516

0 commit comments

Comments
 (0)
0