Skip to content

Commit 898bbd0

Browse files
committed
newlist: fix missing % interpolation and Python 2 print trailing comma
'Hit enter to notify %(listname)s owner...' was never interpolated. Replace print()+readline() with input() which handles both the prompt and waiting for Enter in one call.
1 parent 1c78055 commit 898bbd0

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

bin/newlist

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,8 +241,7 @@ def main():
241241

242242
# And send the notice to the list owner
243243
if not quiet and not automate:
244-
print('Hit enter to notify %(listname)s owner...'),
245-
sys.stdin.readline()
244+
input('Hit enter to notify %s owner...' % listname)
246245
if not quiet:
247246
siteowner = Utils.get_site_email(mlist.host_name, 'owner')
248247
text = Utils.maketext(

0 commit comments

Comments
 (0)