Improve comformance to pep8 (+dos2unix)

PyGithub is now a public projects with several public contibutors,
I have to abandon my very personal coding conventions.
This commit is contained in:
Vincent Jacques
2012-09-17 20:37:22 +02:00
parent 7f61adcaf5
commit 531c3f2d32
107 changed files with 5245 additions and 5094 deletions
+6 -5
View File
@@ -13,8 +13,9 @@
import GithubObject
class InputGitTreeElement( object ):
def __init__( self, path, mode, type, content = GithubObject.NotSet, sha = GithubObject.NotSet ):
class InputGitTreeElement(object):
def __init__(self, path, mode, type, content=GithubObject.NotSet, sha=GithubObject.NotSet):
self.__path = path
self.__mode = mode
self.__type = type
@@ -22,14 +23,14 @@ class InputGitTreeElement( object ):
self.__sha = sha
@property
def _identity( self ):
def _identity(self):
identity = {
"path": self.__path,
"mode": self.__mode,
"type": self.__type,
}
if self.__sha is not GithubObject.NotSet:
identity[ "sha" ] = self.__sha
identity["sha"] = self.__sha
if self.__content is not GithubObject.NotSet:
identity[ "content" ] = self.__content
identity["content"] = self.__content
return identity