Skip to content

Commit b8dad98

Browse files
Clean up a lot of pyflakes warnings (PyGithub#1153)
Clean up unused imports or unused variables to mostly silence pyflakes. We aren't quite yet in a place where we can run it via Travis, but baby steps.
1 parent 0f2beac commit b8dad98

36 files changed

Lines changed: 13 additions & 71 deletions

github/InstallationAuthorization.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@
2525
# #
2626
################################################################################
2727

28-
import datetime
29-
3028
import github.GithubObject
3129
import github.PaginatedList
3230
import github.NamedUser

github/Invitation.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@
2424
# #
2525
################################################################################
2626

27-
import urllib
28-
2927
import github.GithubObject
3028

3129

github/IssueEvent.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -173,14 +173,6 @@ def rename(self):
173173
self._completeIfNotSet(self._rename)
174174
return self._rename.value
175175

176-
@property
177-
def rename(self):
178-
"""
179-
:type: dict
180-
"""
181-
self._completeIfNotSet(self._rename)
182-
return self._rename.value
183-
184176
@property
185177
def dismissed_review(self):
186178
"""

github/MainClass.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@
5050

5151
import datetime
5252

53-
import urllib
5453
import pickle
5554
import time
5655
import sys
@@ -61,12 +60,10 @@
6160
from Requester import Requester
6261
import AuthenticatedUser
6362
import NamedUser
64-
import Organization
6563
import Gist
6664
import github.PaginatedList
6765
import Repository
6866
import Installation
69-
import Legacy
7067
import License
7168
import Topic
7269
import github.GithubObject

github/Organization.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
################################################################################
4343

4444
import datetime
45-
import json
4645

4746
import github.GithubObject
4847
import github.PaginatedList

github/PaginatedList.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@
4242
except ImportError:
4343
from urlparse import parse_qs
4444

45-
import github.GithubObject
46-
4745

4846
class PaginatedListBase:
4947
def __init__(self):

github/Project.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@
2222
# #
2323
################################################################################
2424

25-
import datetime
26-
import json
27-
2825
import github.GithubObject
2926
import github.ProjectColumn
3027

github/ProjectCard.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@
2222
# #
2323
################################################################################
2424

25-
import json
26-
2725
import github.GithubObject
2826

2927
# NOTE: There is currently no way to get cards "in triage" for a project.

github/ProjectColumn.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@
2222
# #
2323
################################################################################
2424

25-
import json
26-
2725
import github.GithubObject
2826
import github.Project
2927
import github.ProjectCard

github/Rate.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
################################################################################
2929

3030
import github.GithubObject
31-
import datetime
3231

3332

3433
class Rate(github.GithubObject.NonCompletableGithubObject):

0 commit comments

Comments
 (0)