Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a23d540

Browse filesBrowse files
Autogenerate footer Copyright year
Closes #15285 Instead of hardcoding the Copyright year, which needs to be changed every year, it now uses datetime to fetch the current year.
1 parent 030157c commit a23d540
Copy full SHA for a23d540

File tree

Expand file treeCollapse file tree

1 file changed

+3
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-1
lines changed

‎doc/conf.py

Copy file name to clipboardExpand all lines: doc/conf.py
+3-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.