Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb6ed8d4

Browse files
author
firm1
committed
fix pep8
1 parent0d4b4ea commitb6ed8d4

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

‎git/refs/log.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,14 @@ def __repr__(self):
3939
"""Representation of ourselves in git reflog format"""
4040
act=self.actor
4141
time=self.time
42-
returnu"{0} {1} {2} <{3}> {4!s} {5}\t{6}\n".format(self.oldhexsha,self.newhexsha,act.name,act.email,
43-
time[0],altz_to_utctz_str(time[1]),self.message).encode("utf-8")
42+
returnu"{0} {1} {2} <{3}> {4!s} {5}\t{6}\n".format(self.oldhexsha,
43+
self.newhexsha,
44+
act.name,
45+
act.email,
46+
time[0],
47+
altz_to_utctz_str(time[1]),
48+
self.message).encode("utf-8")
49+
4450
@property
4551
defoldhexsha(self):
4652
"""The hexsha to the commit the ref pointed to before the change"""

‎git/test/test_index.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
fixture,
1111
with_rw_repo
1212
)
13+
fromgit.utilimportActor
1314
fromgitimport (
1415
IndexFile,
1516
BlobFilter,
@@ -444,10 +445,10 @@ def mixed_iterator():
444445
assertnew_commit.parents[0]==cur_commit
445446
assertlen(new_commit.parents)==1
446447
assertcur_head.commit==cur_commit
447-
448+
448449
# commit with other actor
449450
cur_commit=cur_head.commit
450-
451+
451452
my_author=Actor("An author","author@example.com")
452453
my_committer=Actor("An committer","committer@example.com")
453454
commit_actor=index.commit(commit_message,author=my_author,committer=my_committer)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp