[Python-checkins] devguide: #26063: future-proof copyright updating.

ezio.melotti python-checkins at python.org
Mon Jan 11 17:00:51 EST 2016


https://hg.python.org/devguide/rev/a4c18139d9b0
changeset:   781:a4c18139d9b0
user:        Ezio Melotti <ezio.melotti at gmail.com>
date:        Tue Jan 12 00:00:43 2016 +0200
summary:
  #26063: future-proof copyright updating.

files:
  conf.py |  6 ++++--
  1 files changed, 4 insertions(+), 2 deletions(-)


diff --git a/conf.py b/conf.py
--- a/conf.py
+++ b/conf.py
@@ -11,7 +11,9 @@
 # All configuration values have a default; values that are commented out
 # serve to show the default.
 
-import sys, os
+import os
+import sys
+import time
 
 # If extensions (or modules to document with autodoc) are in another directory,
 # add these directories to sys.path here. If the directory is relative to the
@@ -43,7 +45,7 @@
 
 # General information about the project.
 project = u'Python Developer\'s Guide'
-copyright = u'2011-2016, Python Software Foundation'
+copyright = u'2011-%s, Python Software Foundation' % time.strftime('%Y')
 
 # The version info for the project you're documenting, acts as replacement for
 # |version| and |release|, also used in various other places throughout the

-- 
Repository URL: https://hg.python.org/devguide


More information about the Python-checkins mailing list