Skip to content

Commit 3eddb2c

Browse files
committed
get: don't count bug comments when printing them
The count just wastes the line space. With this change and preceding real name and date/time changes a comment header gets as close to the WebUI as possible.
1 parent f68ed84 commit 3eddb2c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

bugz/cli.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,6 @@ def show_bug_info(bug, settings):
317317
bug_comments = bug_comments['bugs']['%s' % bug['id']]['comments']
318318
print('%-12s: %d' % ('Comments', len(bug_comments)))
319319
print()
320-
i = 0
321320
wrapper = textwrap.TextWrapper(width=settings.columns,
322321
break_long_words=False,
323322
break_on_hyphens=False)
@@ -330,7 +329,7 @@ def show_bug_info(bug, settings):
330329
who = comment['creator']
331330
when = parsetime(comment['time'])
332331
what = comment['text']
333-
print('[Comment #%d] %s %s' % (i, who, printtime(when, settings)))
332+
print('%s %s' % (who, printtime(when, settings)))
334333
print('-' * (settings.columns - 1))
335334

336335
if what is None:
@@ -344,7 +343,6 @@ def show_bug_info(bug, settings):
344343
for shortline in wrapper.wrap(line):
345344
print(shortline)
346345
print()
347-
i += 1
348346

349347

350348
def attach(settings):

0 commit comments

Comments
 (0)