mirror of
https://github.com/status-im/PyGithub.git
synced 2026-08-31 19:01:15 +00:00
Use absolute imports. May help with Python 3
This commit is contained in:
@@ -13,11 +13,11 @@
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
import GithubObject
|
||||
import github.GithubObject
|
||||
|
||||
|
||||
class InputGitTreeElement(object):
|
||||
def __init__(self, path, mode, type, content=GithubObject.NotSet, sha=GithubObject.NotSet):
|
||||
def __init__(self, path, mode, type, content=github.GithubObject.NotSet, sha=github.GithubObject.NotSet):
|
||||
self.__path = path
|
||||
self.__mode = mode
|
||||
self.__type = type
|
||||
@@ -31,8 +31,8 @@ class InputGitTreeElement(object):
|
||||
"mode": self.__mode,
|
||||
"type": self.__type,
|
||||
}
|
||||
if self.__sha is not GithubObject.NotSet:
|
||||
if self.__sha is not github.GithubObject.NotSet:
|
||||
identity["sha"] = self.__sha
|
||||
if self.__content is not GithubObject.NotSet:
|
||||
if self.__content is not github.GithubObject.NotSet:
|
||||
identity["content"] = self.__content
|
||||
return identity
|
||||
|
||||
Reference in New Issue
Block a user