Skip to content

Commit 046e18d

Browse files
committed
MNT: fix year in the intro message
1 parent 4a159ef commit 046e18d

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

diffpy/pdffit2/pdffit.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,14 +90,14 @@ def _convertCallable(var):
9090
* %(date)s *
9191
* -------------------------------------------------------------------------- *
9292
* (c) 1998-2007 Trustees of the Michigan State University. *
93-
* (c) 2008-2016 Trustees of the Columbia University *
93+
* (c) 2008-%(year)s Trustees of the Columbia University *
9494
* in the city of New York. *
9595
* *
9696
* Authors: *
9797
* Thomas Proffen - Email: tproffen@lanl.gov *
9898
* Jacques Bloch - Email: bloch@pa.msu.edu *
9999
* Christopher Farrow - Email: clf2121@columbia.edu *
100-
* Pavol Juhas - Email: pjuhas@bnl.gov
100+
* Pavol Juhas - Email: pjuhas@bnl.gov *
101101
* Simon Billinge - Email: sb2896@columbia.edu *
102102
******************************************************************************
103103
"""
@@ -141,7 +141,8 @@ def intro():
141141
import re
142142
from diffpy.pdffit2 import __version__, __date__
143143
date = __date__[:10]
144-
d = {'version' : __version__, 'date' : date}
144+
d = {'version' : __version__, 'date' : date,
145+
'year' : date[:4] or '2019'}
145146
msg = __intro_message__ % d
146147
filler = lambda mx : (mx.group(0).rstrip(' *').ljust(77) + '*')
147148
msg_ljust = re.sub('(?m)^(.{1,77}|.{79}.*)$', filler, msg)

0 commit comments

Comments
 (0)