2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-31 14:05:33 +00:00

[1541] a bit more style fixes: fold long lines, spacing

This commit is contained in:
JINMEI Tatuya
2012-03-14 13:47:51 -07:00
parent aa72029e21
commit 9c8dd4effe

View File

@@ -90,13 +90,15 @@ def branch_list_get(verbose):
# let's get the last contributor with extra formatting
# see man git-log and search for PRETTY FORMATS.
# %ai = date, %ae = author e-mail, %an = author name
cmd = [ "git" , "log", "-n", "1", "--pretty=\"%ai,%ae,%an\"", branch_info.name ]
cmd = [ "git" , "log", "-n", "1", "--pretty=\"%ai,%ae,%an\"",
branch_info.name ]
offender = subprocess.check_output(cmd)
offender = offender.strip(b"\n\"")
# comment out this 2 lines to disable obfuscation
offender = offender.replace(b"@", b"(at)")
# Obfuscating a dot does not work too well for folks that use initials
# Obfuscating a dot does not work too well for folks that use
# initials
#offender = offender.replace(b".", b"(dot)")
branch_info.last_commit = offender.decode("utf-8")
@@ -122,7 +124,7 @@ def branch_print(branches, csv, print_merged, print_notmerged, print_stats):
merged_str = ""
notmerged_str = ""
for branch in branches:
if branch.status==Branch.MERGED:
if branch.status == Branch.MERGED:
merged = merged + 1
if not print_merged:
continue
@@ -152,7 +154,7 @@ def branch_print(branches, csv, print_merged, print_notmerged, print_stats):
print("#Not merged: %d" % notmerged)
def parse_args(args = sys.argv[1:], Parser=OptionParser):
def parse_args(args=sys.argv[1:], Parser=OptionParser):
parser = Parser(description="This script prints out merged and/or unmerged"
" branches of a GIT tree.")