Skip to content

Commit 8c6f88e

Browse files
committed
remove __version__s dependent on subversion keyword expansion (closes python#12221)
1 parent 9e3e1c6 commit 8c6f88e

File tree

13 files changed

+94
-104
lines changed

13 files changed

+94
-104
lines changed

Lib/pickle.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@
2323
2424
"""
2525

26-
__version__ = "$Revision$" # Code version
27-
2826
from types import FunctionType, BuiltinFunctionType
2927
from copyreg import dispatch_table
3028
from copyreg import _extension_registry, _inverted_registry, _extension_cache

Lib/pydoc.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ class or function within a module or module in a package. If the
3737
__author__ = "Ka-Ping Yee <ping@lfw.org>"
3838
__date__ = "26 February 2001"
3939

40-
__version__ = "$Revision$"
4140
__credits__ = """Guido van Rossum, for an excellent programming language.
4241
Tommy Burnette, the original creator of manpy.
4342
Paul Prescod, for all his work on onlinehelp.

Lib/tarfile.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@
2929
"""Read from and write to tar format archives.
3030
"""
3131

32-
__version__ = "$Revision$"
33-
3432
version = "0.9.0"
3533
__author__ = "Lars Gust\u00e4bel (lars@gustaebel.de)"
3634
__date__ = "$Date$"

Lib/tkinter/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@
3030
tk.mainloop()
3131
"""
3232

33-
__version__ = "$Revision$"
34-
3533
import sys
3634
if sys.platform == "win32":
3735
# Attempt to configure Tcl/Tk without requiring PATH

Lib/xml/parsers/expat.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
"""Interface to the Expat non-validating XML parser."""
2-
__version__ = '$Revision$'
3-
42
import sys
53

64
from pyexpat import *

Misc/NEWS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,10 @@ Core and Builtins
184184
Library
185185
-------
186186

187+
- Issue #12221: Remove __version__ attributes from pyexpat, pickle, tarfile,
188+
pydoc, tkinter, and xml.parsers.expat. This were useless version constants
189+
left over from the Mercurial transition
190+
187191
- Issue #12085: Fix an attribute error in subprocess.Popen destructor if the
188192
constructor has failed, e.g. because of an undeclared keyword argument. Patch
189193
written by Oleg Oshmyan.

Modules/pyexpat.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1662,7 +1662,6 @@ MODULE_INITFUNC(void)
16621662
PyObject *errors_module;
16631663
PyObject *modelmod_name;
16641664
PyObject *model_module;
1665-
PyObject *version;
16661665
PyObject *sys_modules;
16671666
PyObject *tmpnum, *tmpstr;
16681667
PyObject *codes_dict;
@@ -1699,10 +1698,6 @@ MODULE_INITFUNC(void)
16991698
Py_INCREF(&Xmlparsetype);
17001699
PyModule_AddObject(m, "XMLParserType", (PyObject *) &Xmlparsetype);
17011700

1702-
version = PyUnicode_FromString(PY_VERSION);
1703-
if (!version)
1704-
return;
1705-
PyModule_AddObject(m, "__version__", version);
17061701
PyModule_AddStringConstant(m, "EXPAT_VERSION",
17071702
(char *) XML_ExpatVersion());
17081703
{

Objects/typeslots.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Generated by typeslots.py $Revision$ */
1+
/* Generated by typeslots.py */
22
0,
33
0,
44
offsetof(PyHeapTypeObject, as_mapping.mp_ass_subscript),

Objects/typeslots.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
import sys, re
55

6-
print("/* Generated by typeslots.py $Revision$ */")
6+
print("/* Generated by typeslots.py */")
77
res = {}
88
for line in sys.stdin:
99
m = re.match("#define Py_([a-z_]+) ([0-9]+)", line)

Tools/unittestgui/unittestgui.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
"""
2929

3030
__author__ = "Steve Purcell (stephen_purcell@yahoo.com)"
31-
__version__ = "$Revision: 1.7 $"[11:-2]
3231

3332
import sys
3433
import traceback

0 commit comments

Comments
 (0)