Skip to content

Commit 39f85c4

Browse files
committed
pep008!
1 parent 5117c9c commit 39f85c4

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

lib/git/commit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ def list_from_string(cls, repo, text):
161161
return commits
162162

163163
@classmethod
164-
def diff(cls, repo, a, b = None, paths = None):
164+
def diff(cls, repo, a, b=None, paths=None):
165165
"""
166166
Show diffs between two trees:
167167

lib/git/repo.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def tags(self):
100100
"""
101101
return Tag.find_all(self)
102102

103-
def commits(self, start = 'master', max_count = 10, skip = 0):
103+
def commits(self, start='master', max_count=10, skip=0):
104104
"""
105105
A list of Commit objects representing the history of a given ref/commit
106106
@@ -137,7 +137,7 @@ def commits_between(self, frm, to):
137137
"""
138138
return Commit.find_all(self, "%s..%s" % (frm, to)).reverse()
139139

140-
def commits_since(self, start = 'master', since = '1970-01-01'):
140+
def commits_since(self, start='master', since='1970-01-01'):
141141
"""
142142
The Commits objects that are newer than the specified date.
143143
Commits are returned in chronological order.
@@ -155,7 +155,7 @@ def commits_since(self, start = 'master', since = '1970-01-01'):
155155

156156
return Commit.find_all(self, start, **options)
157157

158-
def commit_count(self, start = 'master'):
158+
def commit_count(self, start='master'):
159159
"""
160160
The number of commits reachable by the given branch/commit
161161
@@ -185,7 +185,7 @@ def commit(self, id):
185185
raise ValueError, 'Invalid identifier %s' % id
186186
return commits[0]
187187

188-
def commit_deltas_from(self, other_repo, ref = 'master', other_ref = 'master'):
188+
def commit_deltas_from(self, other_repo, ref='master', other_ref='master'):
189189
"""
190190
Returns a list of commits that is in ``other_repo`` but not in self
191191
@@ -198,7 +198,7 @@ def commit_deltas_from(self, other_repo, ref = 'master', other_ref = 'master'):
198198
diff_refs = list(set(other_repo_refs) - set(repo_refs))
199199
return map(lambda ref: Commit.find_all(other_repo, ref, max_count=1)[0], diff_refs)
200200

201-
def tree(self, treeish = 'master'):
201+
def tree(self, treeish='master'):
202202
"""
203203
The Tree object for the given treeish reference
204204
@@ -227,7 +227,7 @@ def blob(self, id):
227227
"""
228228
return Blob(self, id=id)
229229

230-
def log(self, commit = 'master', path = None, **kwargs):
230+
def log(self, commit='master', path=None, **kwargs):
231231
"""
232232
The commit log for a treeish
233233
@@ -316,7 +316,7 @@ def fork_bare(self, path, **kwargs):
316316
self.git.clone(self.path, path, **options)
317317
return Repo(path)
318318

319-
def archive_tar(self, treeish = 'master', prefix = None):
319+
def archive_tar(self, treeish='master', prefix=None):
320320
"""
321321
Archive the given treeish
322322
@@ -345,7 +345,7 @@ def archive_tar(self, treeish = 'master', prefix = None):
345345
options['prefix'] = prefix
346346
return self.git.archive(treeish, **options)
347347

348-
def archive_tar_gz(self, treeish = 'master', prefix = None):
348+
def archive_tar_gz(self, treeish='master', prefix=None):
349349
"""
350350
Archive and gzip the given treeish
351351

0 commit comments

Comments
 (0)