Skip to content

Commit

Permalink
pythongh-126133: Only use start year in PSF copyright, remove end yea…
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk authored Nov 12, 2024
1 parent 8ff7efb commit 91f4908
Show file tree
Hide file tree
Showing 45 changed files with 47 additions and 50 deletions.
5 changes: 1 addition & 4 deletions Doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,7 @@

# General substitutions.
project = 'Python'
if sphinx.version_info[:2] >= (8, 1):
copyright = "2001-%Y, Python Software Foundation"
else:
copyright = f"2001-{time.strftime('%Y')}, Python Software Foundation"
copyright = "2001 Python Software Foundation"

# We look for the Include/patchlevel.h file in the current Python source tree
# and replace the values accordingly.
Expand Down
2 changes: 1 addition & 1 deletion Doc/copyright.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Copyright

Python and this documentation is:

Copyright © 2001-2024 Python Software Foundation. All rights reserved.
Copyright © 2001 Python Software Foundation. All rights reserved.

Copyright © 2000 BeOpen.com. All rights reserved.

Expand Down
2 changes: 1 addition & 1 deletion Doc/license.rst
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ PSF LICENSE AGREEMENT FOR PYTHON |release|
analyze, test, perform and/or display publicly, prepare derivative works,
distribute, and otherwise use Python |release| alone or in any derivative
version, provided, however, that PSF's License Agreement and PSF's notice of
copyright, i.e., "Copyright © 2001-2024 Python Software Foundation; All Rights
copyright, i.e., "Copyright © 2001 Python Software Foundation; All Rights
Reserved" are retained in Python |release| alone or in any derivative version
prepared by Licensee.
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce,
analyze, test, perform and/or display publicly, prepare derivative works,
distribute, and otherwise use Python alone or in any derivative version,
provided, however, that PSF's License Agreement and PSF's notice of copyright,
i.e., "Copyright (c) 2001-2024 Python Software Foundation; All Rights Reserved"
i.e., "Copyright (c) 2001 Python Software Foundation; All Rights Reserved"
are retained in Python alone or in any derivative version prepared by Licensee.

3. In the event Licensee prepares a derivative work that is based on
Expand Down
2 changes: 1 addition & 1 deletion Lib/email/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2001-2007 Python Software Foundation
# Copyright (C) 2001 Python Software Foundation
# Author: Barry Warsaw
# Contact: [email protected]

Expand Down
2 changes: 1 addition & 1 deletion Lib/email/_parseaddr.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2002-2007 Python Software Foundation
# Copyright (C) 2002 Python Software Foundation
# Contact: [email protected]

"""Email address parsing code.
Expand Down
2 changes: 1 addition & 1 deletion Lib/email/base64mime.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2002-2007 Python Software Foundation
# Copyright (C) 2002 Python Software Foundation
# Author: Ben Gertzfield
# Contact: [email protected]

Expand Down
2 changes: 1 addition & 1 deletion Lib/email/charset.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2001-2007 Python Software Foundation
# Copyright (C) 2001 Python Software Foundation
# Author: Ben Gertzfield, Barry Warsaw
# Contact: [email protected]

Expand Down
2 changes: 1 addition & 1 deletion Lib/email/encoders.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2001-2006 Python Software Foundation
# Copyright (C) 2001 Python Software Foundation
# Author: Barry Warsaw
# Contact: [email protected]

Expand Down
2 changes: 1 addition & 1 deletion Lib/email/errors.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2001-2006 Python Software Foundation
# Copyright (C) 2001 Python Software Foundation
# Author: Barry Warsaw
# Contact: [email protected]

Expand Down
2 changes: 1 addition & 1 deletion Lib/email/feedparser.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2004-2006 Python Software Foundation
# Copyright (C) 2004 Python Software Foundation
# Authors: Baxter, Wouters and Warsaw
# Contact: [email protected]

Expand Down
2 changes: 1 addition & 1 deletion Lib/email/generator.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2001-2010 Python Software Foundation
# Copyright (C) 2001 Python Software Foundation
# Author: Barry Warsaw
# Contact: [email protected]

Expand Down
2 changes: 1 addition & 1 deletion Lib/email/header.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2002-2007 Python Software Foundation
# Copyright (C) 2002 Python Software Foundation
# Author: Ben Gertzfield, Barry Warsaw
# Contact: [email protected]

Expand Down
2 changes: 1 addition & 1 deletion Lib/email/iterators.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2001-2006 Python Software Foundation
# Copyright (C) 2001 Python Software Foundation
# Author: Barry Warsaw
# Contact: [email protected]

Expand Down
2 changes: 1 addition & 1 deletion Lib/email/message.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2001-2007 Python Software Foundation
# Copyright (C) 2001 Python Software Foundation
# Author: Barry Warsaw
# Contact: [email protected]

Expand Down
2 changes: 1 addition & 1 deletion Lib/email/mime/application.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2001-2006 Python Software Foundation
# Copyright (C) 2001 Python Software Foundation
# Author: Keith Dart
# Contact: [email protected]

Expand Down
2 changes: 1 addition & 1 deletion Lib/email/mime/audio.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2001-2007 Python Software Foundation
# Copyright (C) 2001 Python Software Foundation
# Author: Anthony Baxter
# Contact: [email protected]

Expand Down
2 changes: 1 addition & 1 deletion Lib/email/mime/base.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2001-2006 Python Software Foundation
# Copyright (C) 2001 Python Software Foundation
# Author: Barry Warsaw
# Contact: [email protected]

Expand Down
2 changes: 1 addition & 1 deletion Lib/email/mime/image.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2001-2006 Python Software Foundation
# Copyright (C) 2001 Python Software Foundation
# Author: Barry Warsaw
# Contact: [email protected]

Expand Down
2 changes: 1 addition & 1 deletion Lib/email/mime/message.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2001-2006 Python Software Foundation
# Copyright (C) 2001 Python Software Foundation
# Author: Barry Warsaw
# Contact: [email protected]

Expand Down
2 changes: 1 addition & 1 deletion Lib/email/mime/multipart.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2002-2006 Python Software Foundation
# Copyright (C) 2002 Python Software Foundation
# Author: Barry Warsaw
# Contact: [email protected]

Expand Down
2 changes: 1 addition & 1 deletion Lib/email/mime/nonmultipart.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2002-2006 Python Software Foundation
# Copyright (C) 2002 Python Software Foundation
# Author: Barry Warsaw
# Contact: [email protected]

Expand Down
2 changes: 1 addition & 1 deletion Lib/email/mime/text.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2001-2006 Python Software Foundation
# Copyright (C) 2001 Python Software Foundation
# Author: Barry Warsaw
# Contact: [email protected]

Expand Down
2 changes: 1 addition & 1 deletion Lib/email/parser.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2001-2007 Python Software Foundation
# Copyright (C) 2001 Python Software Foundation
# Author: Barry Warsaw, Thomas Wouters, Anthony Baxter
# Contact: [email protected]

Expand Down
2 changes: 1 addition & 1 deletion Lib/email/quoprimime.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2001-2006 Python Software Foundation
# Copyright (C) 2001 Python Software Foundation
# Author: Ben Gertzfield
# Contact: [email protected]

Expand Down
2 changes: 1 addition & 1 deletion Lib/email/utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2001-2010 Python Software Foundation
# Copyright (C) 2001 Python Software Foundation
# Author: Barry Warsaw
# Contact: [email protected]

Expand Down
2 changes: 1 addition & 1 deletion Lib/functools.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# Written by Nick Coghlan <ncoghlan at gmail.com>,
# Raymond Hettinger <python at rcn.com>,
# and Łukasz Langa <lukasz at langa.pl>.
# Copyright (C) 2006-2024 Python Software Foundation.
# Copyright (C) 2006 Python Software Foundation.
# See C source code for _functools credits/copyright

__all__ = ['update_wrapper', 'wraps', 'WRAPPER_ASSIGNMENTS', 'WRAPPER_UPDATES',
Expand Down
2 changes: 1 addition & 1 deletion Lib/optparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

__copyright__ = """
Copyright (c) 2001-2006 Gregory P. Ward. All rights reserved.
Copyright (c) 2002-2006 Python Software Foundation. All rights reserved.
Copyright (c) 2002 Python Software Foundation. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
Expand Down
2 changes: 1 addition & 1 deletion Lib/test/test_csv.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2001,2002 Python Software Foundation
# Copyright (C) 2001 Python Software Foundation
# csv package unit tests

import copy
Expand Down
2 changes: 1 addition & 1 deletion Lib/test/test_email/test_asian_codecs.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2002-2006 Python Software Foundation
# Copyright (C) 2002 Python Software Foundation
# Contact: [email protected]
# email package unit tests for (optional) Asian codecs

Expand Down
2 changes: 1 addition & 1 deletion Lib/test/test_email/test_email.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2001-2010 Python Software Foundation
# Copyright (C) 2001 Python Software Foundation
# Contact: [email protected]
# email package unit tests

Expand Down
2 changes: 1 addition & 1 deletion Lib/test/test_email/torture_test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2002-2004 Python Software Foundation
# Copyright (C) 2002 Python Software Foundation
#
# A torture test of the email package. This should not be run as part of the
# standard Python test suite since it requires several meg of email messages
Expand Down
2 changes: 1 addition & 1 deletion Lib/test/test_plistlib.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2003-2013 Python Software Foundation
# Copyright (C) 2003 Python Software Foundation
import copy
import operator
import pickle
Expand Down
2 changes: 1 addition & 1 deletion Lib/textwrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"""

# Copyright (C) 1999-2001 Gregory P. Ward.
# Copyright (C) 2002, 2003 Python Software Foundation.
# Copyright (C) 2002 Python Software Foundation.
# Written by Greg Ward <[email protected]>

import re
Expand Down
2 changes: 1 addition & 1 deletion Lib/unittest/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def testMultiply(self):
http://docs.python.org/library/unittest.html
Copyright (c) 1999-2003 Steve Purcell
Copyright (c) 2003-2010 Python Software Foundation
Copyright (c) 2003 Python Software Foundation
This module is free software, and you may redistribute it and/or modify
it under the same terms as Python itself, so long as this copyright message
and disclaimer are retained in their original form.
Expand Down
2 changes: 1 addition & 1 deletion Lib/wsgiref/headers.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Manage HTTP Response Headers
Much of this module is red-handedly pilfered from email.message in the stdlib,
so portions are Copyright (C) 2001,2002 Python Software Foundation, and were
so portions are Copyright (C) 2001 Python Software Foundation, and were
written by Barry Warsaw.
"""

Expand Down
2 changes: 1 addition & 1 deletion Mac/BuildScript/resources/License.rtf
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Some software incorporated into Python is under different licenses. The licenses
\f1\b0 \
1. This LICENSE AGREEMENT is between the Python Software Foundation ("PSF"), and the Individual or Organization ("Licensee") accessing and otherwise using this software ("Python") in source or binary form and its associated documentation.\
\
2. Subject to the terms and conditions of this License Agreement, PSF hereby grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce, analyze, test, perform and/or display publicly, prepare derivative works, distribute, and otherwise use Python alone or in any derivative version, provided, however, that PSF's License Agreement and PSF's notice of copyright, i.e., "Copyright \'a9 2001-2020 Python Software Foundation; All Rights Reserved" are retained in Python alone or in any derivative version prepared by Licensee.\
2. Subject to the terms and conditions of this License Agreement, PSF hereby grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce, analyze, test, perform and/or display publicly, prepare derivative works, distribute, and otherwise use Python alone or in any derivative version, provided, however, that PSF's License Agreement and PSF's notice of copyright, i.e., "Copyright \'a9 2001 Python Software Foundation; All Rights Reserved" are retained in Python alone or in any derivative version prepared by Licensee.\
\
3. In the event Licensee prepares a derivative work that is based on or incorporates Python or any part thereof, and wants to make the derivative work available to others as provided herein, then Licensee hereby agrees to include in any such work a brief summary of the changes made to Python.\
\
Expand Down
4 changes: 2 additions & 2 deletions Mac/PythonLauncher/Info.plist.in
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@
<key>CFBundleExecutable</key>
<string>Python Launcher</string>
<key>NSHumanReadableCopyright</key>
<string>Copyright © 2001-2024 Python Software Foundation</string>
<string>Copyright © 2001 Python Software Foundation</string>
<key>CFBundleGetInfoString</key>
<string>%VERSION%, © 2001-2024 Python Software Foundation</string>
<string>%VERSION%, © 2001 Python Software Foundation</string>
<key>CFBundleIconFile</key>
<string>PythonLauncher.icns</string>
<key>CFBundleIdentifier</key>
Expand Down
2 changes: 1 addition & 1 deletion Modules/_decimal/docstrings.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2001-2012 Python Software Foundation. All Rights Reserved.
* Copyright (c) 2001 Python Software Foundation. All Rights Reserved.
* Modified and extended by Stefan Krah.
*/

Expand Down
2 changes: 1 addition & 1 deletion Modules/_decimal/tests/bench.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (C) 2001-2012 Python Software Foundation. All Rights Reserved.
# Copyright (C) 2001 Python Software Foundation. All Rights Reserved.
# Modified and extended by Stefan Krah.
#

Expand Down
2 changes: 1 addition & 1 deletion Modules/_functoolsmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class _functools._lru_cache_wrapper "PyObject *" "&lru_cache_type_spec"
/* _functools module written and maintained
by Hye-Shik Chang <[email protected]>
with adaptations by Raymond Hettinger <[email protected]>
Copyright (c) 2004, 2005, 2006 Python Software Foundation.
Copyright (c) 2004 Python Software Foundation.
All rights reserved.
*/

Expand Down
2 changes: 1 addition & 1 deletion PC/python_ver_rc.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include "winver.h"

#define PYTHON_COMPANY "Python Software Foundation"
#define PYTHON_COPYRIGHT "Copyright \xA9 2001-2024 Python Software Foundation. Copyright \xA9 2000 BeOpen.com. Copyright \xA9 1995-2001 CNRI. Copyright \xA9 1991-1995 SMC."
#define PYTHON_COPYRIGHT "Copyright \xA9 2001 Python Software Foundation. Copyright \xA9 2000 BeOpen.com. Copyright \xA9 1995-2001 CNRI. Copyright \xA9 1991-1995 SMC."

#define MS_WINDOWS
#include "modsupport.h"
Expand Down
2 changes: 1 addition & 1 deletion PC/store_info.txt
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ PSF LICENSE AGREEMENT FOR PYTHON 3.9
analyze, test, perform and/or display publicly, prepare derivative works,
distribute, and otherwise use Python 3.9 alone or in any derivative
version, provided, however, that PSF's License Agreement and PSF's notice of
copyright, i.e., "Copyright © 2001-2018 Python Software Foundation; All Rights
copyright, i.e., "Copyright © 2001 Python Software Foundation; All Rights
Reserved" are retained in Python 3.9 alone or in any derivative version
prepared by Licensee.

Expand Down
2 changes: 1 addition & 1 deletion Python/getcopyright.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

static const char cprt[] =
"\
Copyright (c) 2001-2024 Python Software Foundation.\n\
Copyright (c) 2001 Python Software Foundation.\n\
All Rights Reserved.\n\
\n\
Copyright (c) 2000 BeOpen.com.\n\
Expand Down
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ This is Python version 3.14.0 alpha 1
:target: https://discuss.python.org/


Copyright © 2001-2024 Python Software Foundation. All rights reserved.
Copyright © 2001 Python Software Foundation. All rights reserved.

See the end of this file for further copyright and license information.

Expand Down Expand Up @@ -215,7 +215,7 @@ Copyright and License Information
---------------------------------


Copyright © 2001-2024 Python Software Foundation. All rights reserved.
Copyright © 2001 Python Software Foundation. All rights reserved.

Copyright © 2000 BeOpen.com. All rights reserved.

Expand Down

0 comments on commit 91f4908

Please sign in to comment.