131 |
bz = self.bugzilla_init() |
bz = self.bugzilla_init() |
132 |
|
|
133 |
# Mask email address |
# Mask email address |
134 |
comment = output[0:idx] |
comment = None |
135 |
|
# Suppress the "Bug links:" section if only one bug |
136 |
|
# is referenced |
137 |
|
if len(bugs) == 1 and len(bugs['Mageia']) == 1: |
138 |
|
comment = output[0:idx-4] |
139 |
|
else: |
140 |
|
comment = output[0:idx] |
141 |
comment[1] = re.sub(r'^(Author: [^@]*)@.*(>)?', r'\1@...>', comment[1]) |
comment[1] = re.sub(r'^(Author: [^@]*)@.*(>)?', r'\1@...>', comment[1]) |
142 |
comment = "".join(comment) |
comment = "".join(comment) |
143 |
|
|