mirror of
https://github.com/status-im/PyGithub.git
synced 2026-09-01 03:11:09 +00:00
Simplify internal imports
This commit is contained in:
@@ -1,12 +1,10 @@
|
||||
from GithubObject import *
|
||||
|
||||
from Authorization import Authorization
|
||||
from UserKey import UserKey
|
||||
from Event import Event
|
||||
from NamedUser import NamedUser
|
||||
from Organization import Organization
|
||||
from Repository import Repository
|
||||
from Gist import Gist
|
||||
from Authorization import *
|
||||
from UserKey import *
|
||||
from Event import *
|
||||
from NamedUser import *
|
||||
from Organization import *
|
||||
from Repository import *
|
||||
from Gist import *
|
||||
|
||||
def __getOrganizationEvents( user, org ):
|
||||
return [
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
from GithubObject import *
|
||||
|
||||
from Commit import Commit
|
||||
from Commit import *
|
||||
|
||||
Branch = GithubObject(
|
||||
"Branch",
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
from GithubObject import *
|
||||
|
||||
from GitCommit import GitCommit
|
||||
from NamedUser import NamedUser
|
||||
from CommitComment import CommitComment
|
||||
from GitCommit import *
|
||||
from NamedUser import *
|
||||
from CommitComment import *
|
||||
|
||||
__modifyAttributesForObjectsReferingReferedRepo = { "_repo": lambda obj: obj._repo }
|
||||
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
from GithubObject import *
|
||||
|
||||
from NamedUser import NamedUser
|
||||
from NamedUser import *
|
||||
|
||||
CommitComment = GithubObject(
|
||||
"CommitComment",
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
from GithubObject import *
|
||||
|
||||
from Repository import Repository
|
||||
from NamedUser import NamedUser
|
||||
from Organization import Organization
|
||||
from Repository import *
|
||||
from NamedUser import *
|
||||
from Organization import *
|
||||
|
||||
Event = GithubObject(
|
||||
"Event",
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
from GithubObject import *
|
||||
|
||||
from NamedUser import NamedUser
|
||||
from GistComment import GistComment
|
||||
from NamedUser import *
|
||||
from GistComment import *
|
||||
|
||||
def __isStarred( gist ):
|
||||
return gist._github._statusRequest( "GET", gist._baseUrl() + "/star", None, None ) == 204
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
from GithubObject import *
|
||||
|
||||
from NamedUser import NamedUser
|
||||
from NamedUser import *
|
||||
|
||||
GistComment = GithubObject(
|
||||
"GistComment",
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
from GithubObject import *
|
||||
|
||||
from GitTree import GitTree
|
||||
from GitTree import *
|
||||
|
||||
GitCommit = GithubObject(
|
||||
"GitCommit",
|
||||
|
||||
@@ -1,10 +1,8 @@
|
||||
from GithubObject import *
|
||||
|
||||
from NamedUser import NamedUser
|
||||
from Milestone import Milestone
|
||||
from Label import Label
|
||||
from IssueComment import IssueComment
|
||||
from IssueEvent import IssueEvent
|
||||
from NamedUser import *
|
||||
from Milestone import *
|
||||
from Label import *
|
||||
from IssueComment import *
|
||||
from IssueEvent import *
|
||||
|
||||
__modifyAttributesForObjectsReferingReferedRepo = { "_repo": lambda obj: obj._repo }
|
||||
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
from GithubObject import *
|
||||
|
||||
from NamedUser import NamedUser
|
||||
from NamedUser import *
|
||||
|
||||
IssueComment = GithubObject(
|
||||
"IssueComment",
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
from GithubObject import *
|
||||
|
||||
from NamedUser import NamedUser
|
||||
from NamedUser import *
|
||||
|
||||
IssueEvent = GithubObject(
|
||||
"IssueEvent",
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
from GithubObject import *
|
||||
|
||||
from NamedUser import NamedUser
|
||||
from Label import Label
|
||||
from NamedUser import *
|
||||
from Label import *
|
||||
|
||||
__modifyAttributesForObjectsReferingReferedRepo = { "_repo": lambda obj: obj._repo }
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
from GithubObject import *
|
||||
|
||||
|
||||
NamedUser = GithubObject(
|
||||
"NamedUser",
|
||||
BaseUrl( lambda obj: "/users/" + obj.login ),
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
from GithubObject import *
|
||||
|
||||
from NamedUser import NamedUser
|
||||
from NamedUser import *
|
||||
|
||||
Organization = GithubObject(
|
||||
"Organization",
|
||||
|
||||
@@ -1,9 +1,7 @@
|
||||
from GithubObject import *
|
||||
|
||||
from NamedUser import NamedUser
|
||||
from Commit import Commit
|
||||
from PullRequestFile import PullRequestFile
|
||||
from PullRequestComment import PullRequestComment
|
||||
from NamedUser import *
|
||||
from Commit import *
|
||||
from PullRequestFile import *
|
||||
from PullRequestComment import *
|
||||
|
||||
__modifyAttributesForObjectsReferingReferedRepo = { "_repo": lambda obj: obj._repo }
|
||||
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
from GithubObject import *
|
||||
|
||||
from NamedUser import NamedUser
|
||||
from NamedUser import *
|
||||
|
||||
PullRequestComment = GithubObject(
|
||||
"PullRequestComment",
|
||||
|
||||
@@ -1,23 +1,21 @@
|
||||
from GithubObject import *
|
||||
|
||||
from NamedUser import NamedUser
|
||||
from IssueEvent import IssueEvent
|
||||
from RepositoryKey import RepositoryKey
|
||||
from Hook import Hook
|
||||
from GitBlob import GitBlob
|
||||
from GitCommit import GitCommit
|
||||
from GitRef import GitRef
|
||||
from GitTag import GitTag
|
||||
from GitTree import GitTree
|
||||
from Label import Label
|
||||
from Milestone import Milestone
|
||||
from Issue import Issue
|
||||
from Download import Download
|
||||
from CommitComment import CommitComment
|
||||
from Commit import Commit
|
||||
from Tag import Tag
|
||||
from Branch import Branch
|
||||
from PullRequest import PullRequest
|
||||
from NamedUser import *
|
||||
from IssueEvent import *
|
||||
from RepositoryKey import *
|
||||
from Hook import *
|
||||
from GitBlob import *
|
||||
from GitCommit import *
|
||||
from GitRef import *
|
||||
from GitTag import *
|
||||
from GitTree import *
|
||||
from Label import *
|
||||
from Milestone import *
|
||||
from Issue import *
|
||||
from Download import *
|
||||
from CommitComment import *
|
||||
from Commit import *
|
||||
from Tag import *
|
||||
from Branch import *
|
||||
from PullRequest import *
|
||||
|
||||
__modifyAttributesForObjectsReferingRepo = { "_repo": lambda repo: repo }
|
||||
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
from GithubObject import *
|
||||
|
||||
from Commit import Commit
|
||||
from Commit import *
|
||||
|
||||
Tag = GithubObject(
|
||||
"Tag",
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
from GithubObject import *
|
||||
|
||||
from NamedUser import NamedUser
|
||||
from Repository import Repository
|
||||
from NamedUser import *
|
||||
from Repository import *
|
||||
|
||||
Team = GithubObject(
|
||||
"Team",
|
||||
|
||||
@@ -1,35 +1,11 @@
|
||||
from GithubObject import *
|
||||
|
||||
from Event import Event
|
||||
from Hook import Hook
|
||||
from Authorization import Authorization
|
||||
from UserKey import UserKey
|
||||
from AuthenticatedUser import AuthenticatedUser
|
||||
from NamedUser import NamedUser
|
||||
from Organization import Organization
|
||||
from GitRef import GitRef
|
||||
from GitTree import GitTree
|
||||
from GitCommit import GitCommit
|
||||
from GitBlob import GitBlob
|
||||
from GitTag import GitTag
|
||||
from Label import Label
|
||||
from Milestone import Milestone
|
||||
from IssueComment import IssueComment
|
||||
from IssueEvent import IssueEvent
|
||||
from Issue import Issue
|
||||
from Download import Download
|
||||
from CommitComment import CommitComment
|
||||
from Commit import Commit
|
||||
from Tag import Tag
|
||||
from Branch import Branch
|
||||
from PullRequestFile import PullRequestFile
|
||||
from PullRequestComment import PullRequestComment
|
||||
from PullRequest import PullRequest
|
||||
from RepositoryKey import RepositoryKey
|
||||
from Repository import Repository
|
||||
from Team import Team
|
||||
from GistComment import GistComment
|
||||
from Gist import Gist
|
||||
from AuthenticatedUser import *
|
||||
from NamedUser import *
|
||||
from Organization import *
|
||||
from Repository import *
|
||||
from Gist import *
|
||||
from Team import *
|
||||
|
||||
#### Complete NamedUser
|
||||
|
||||
|
||||
Reference in New Issue
Block a user