From: W. Trevor King Date: Mon, 10 Feb 2014 18:40:29 +0000 (-0800) Subject: nmbug-status: Consolidate HTML header printing X-Git-Tag: 0.18_rc0~156 X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=a6ff03df3f8fece526536f44a22af2041db021ef;hp=a7e4d9a18fdd9dd0aa3f2ec257d17e364a732876;p=notmuch 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 --- 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('