Skip to content

Commit 16223e5

Browse files
committed
Use automatic formatters
1 parent 9ec2709 commit 16223e5

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

git/refs/log.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,13 @@ def format(self):
4848
""":return: a string suitable to be placed in a reflog file"""
4949
act = self.actor
5050
time = self.time
51-
return u"{0} {1} {2} <{3}> {4!s} {5}\t{6}\n".format(self.oldhexsha,
52-
self.newhexsha,
53-
act.name,
54-
act.email,
55-
time[0],
56-
altz_to_utctz_str(time[1]),
57-
self.message)
51+
return u"{} {} {} <{}> {!s} {}\t{}\n".format(self.oldhexsha,
52+
self.newhexsha,
53+
act.name,
54+
act.email,
55+
time[0],
56+
altz_to_utctz_str(time[1]),
57+
self.message)
5858

5959
@property
6060
def oldhexsha(self):

git/test/test_index.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -882,10 +882,10 @@ def test_commit_msg_hook_success(self, rw_repo):
882882
_make_hook(
883883
index.repo.git_dir,
884884
'commit-msg',
885-
'echo -n " {0}" >> "$1"'.format(from_hook_message)
885+
'echo -n " {}" >> "$1"'.format(from_hook_message)
886886
)
887887
new_commit = index.commit(commit_message)
888-
self.assertEqual(new_commit.message, u"{0} {1}".format(commit_message, from_hook_message))
888+
self.assertEqual(new_commit.message, u"{} {}".format(commit_message, from_hook_message))
889889

890890
@with_rw_repo('HEAD', bare=True)
891891
def test_commit_msg_hook_fail(self, rw_repo):

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy