From a6ff03df3f8fece526536f44a22af2041db021ef Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Mon, 10 Feb 2014 10:40:29 -0800 Subject: [PATCH] nmbug-status: Consolidate HTML header printing Make this all one big string, using '...{date}...'.format(date=...) to inject the date [1]. This syntax was added in Python 2.6, and is preferred to %-formatting in Python 3 [1]. [1]: http://docs.python.org/2/library/stdtypes.html#str.format --- devel/nmbug/nmbug-status | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/devel/nmbug/nmbug-status b/devel/nmbug/nmbug-status index be3e28e7..3aa83b62 100755 --- a/devel/nmbug/nmbug-status +++ b/devel/nmbug/nmbug-status @@ -190,13 +190,12 @@ if output_format == 'html': Notmuch Patches -''') - print('

Notmuch Patches

') - print('Generated: %s
' % datetime.datetime.utcnow().date()) - print('For more infomation see nmbug') - - print('

Views

') - print('