Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit db5fb66

Browse files
authored
Merge pull request #15305 from the-c0d3br34k3r/Autogenerate_Copyright_year
Autogenerate footer Copyright year
2 parents 030157c + a23d540 commit db5fb66

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

doc/conf.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
import matplotlib
1818
import sphinx
1919

20+
from datetime import datetime
21+
2022
if sys.version_info < (3, 0, 0):
2123
print("You're using python 2.x, conf.py works with python3+ only.")
2224
exit()
@@ -174,7 +176,7 @@ def _check_dependencies():
174176
project = 'Matplotlib'
175177
copyright = ('2002 - 2012 John Hunter, Darren Dale, Eric Firing, '
176178
'Michael Droettboom and the Matplotlib development '
177-
'team; 2012 - 2018 The Matplotlib development team')
179+
f'team; 2012 - {datetime.now().year} The Matplotlib development team')
178180

179181

180182
# The default replacements for |version| and |release|, also used in various

0 commit comments

Comments
 (0)