Commit 83ba2115 authored by Toby Dickenson's avatar Toby Dickenson

merged toby-safe-missing-cvs-revision-tags-branch; cvs -kk compatability

parent 654bae09
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
# All Rights Reserved. # All Rights Reserved.
# #
RCS_ID = '$Id: ftp_server.py,v 1.18 2001/07/09 15:13:06 andreas Exp $' RCS_ID = '$Id: ftp_server.py,v 1.19 2002/03/21 15:48:53 htrd Exp $'
# An extensible, configurable, asynchronous FTP server. # An extensible, configurable, asynchronous FTP server.
# #
...@@ -48,7 +48,10 @@ import time ...@@ -48,7 +48,10 @@ import time
# 2) carefully control the effective uid around filesystem accessing # 2) carefully control the effective uid around filesystem accessing
# methods, using try/finally. [this seems to work] # methods, using try/finally. [this seems to work]
VERSION = string.split(RCS_ID)[2] if RCS_ID.startswith('$Id: '):
VERSION = string.split(RCS_ID)[2]
else:
VERSION = '0.0'
from counter import counter from counter import counter
import producers import producers
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
# All Rights Reserved. # All Rights Reserved.
# #
RCS_ID = '$Id: http_server.py,v 1.30 2001/09/20 13:29:28 andreasjung Exp $' RCS_ID = '$Id: http_server.py,v 1.31 2002/03/21 15:48:53 htrd Exp $'
# python modules # python modules
import os import os
...@@ -28,7 +28,10 @@ import producers ...@@ -28,7 +28,10 @@ import producers
import status_handler import status_handler
import logger import logger
VERSION_STRING = string.split(RCS_ID)[2] if RCS_ID.startswith('$Id: '):
VERSION_STRING = string.split(RCS_ID)[2]
else:
VERSION_STRING = '0.0'
from counter import counter from counter import counter
from urllib import unquote from urllib import unquote
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
# python REPL channel. # python REPL channel.
# #
RCS_ID = '$Id: monitor.py,v 1.12 2001/05/01 11:44:48 andreas Exp $' RCS_ID = '$Id: monitor.py,v 1.13 2002/03/21 15:48:53 htrd Exp $'
import md5 import md5
import socket import socket
...@@ -13,7 +13,10 @@ import string ...@@ -13,7 +13,10 @@ import string
import sys import sys
import time import time
VERSION = string.split(RCS_ID)[2] if RCS_ID.startswith('$Id: '):
VERSION = string.split(RCS_ID)[2]
else:
VERSION = '0.0'
import asyncore import asyncore
import asynchat import asynchat
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
# Author: Sam Rushing <rushing@nightmare.com> # Author: Sam Rushing <rushing@nightmare.com>
# #
RCS_ID = '$Id: resolver.py,v 1.9 2001/05/01 11:44:49 andreas Exp $' RCS_ID = '$Id: resolver.py,v 1.10 2002/03/21 15:48:53 htrd Exp $'
# Fast, low-overhead asynchronous name resolver. uses 'pre-cooked' # Fast, low-overhead asynchronous name resolver. uses 'pre-cooked'
...@@ -19,7 +19,10 @@ import sys ...@@ -19,7 +19,10 @@ import sys
import time import time
from counter import counter from counter import counter
VERSION = string.split(RCS_ID)[2] if RCS_ID.startswith('$Id: '):
VERSION = string.split(RCS_ID)[2]
else:
VERSION = '0.0'
# header # header
# 1 1 1 1 1 1 # 1 1 1 1 1 1
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
static char BTree_module_documentation[] = static char BTree_module_documentation[] =
"" ""
"\n$Id: BTree.c,v 1.30 2001/11/28 15:50:50 matt Exp $" "\n$Id: BTree.c,v 1.31 2002/03/21 15:48:53 htrd Exp $"
; ;
#define PERSISTENT #define PERSISTENT
...@@ -2027,9 +2027,6 @@ initBTree(void) ...@@ -2027,9 +2027,6 @@ initBTree(void)
#endif #endif
{ {
PyObject *m, *d; PyObject *m, *d;
char *rev="$Revision: 1.30 $";
UNLESS(PyExtensionClassCAPI=PyCObject_Import("ExtensionClass","CAPI")) UNLESS(PyExtensionClassCAPI=PyCObject_Import("ExtensionClass","CAPI"))
return; return;
...@@ -2073,10 +2070,6 @@ initBTree(void) ...@@ -2073,10 +2070,6 @@ initBTree(void)
PyExtensionClass_Export(d,"Bucket",BucketType); PyExtensionClass_Export(d,"Bucket",BucketType);
PyExtensionClass_Export(d,"BTree",BTreeType); PyExtensionClass_Export(d,"BTree",BTreeType);
PyDict_SetItemString(d, "__version__",
PyString_FromStringAndSize(rev+11,strlen(rev+11)-2));
/* Check for errors */ /* Check for errors */
if (PyErr_Occurred()) if (PyErr_Occurred())
Py_FatalError("can't initialize module BTree"); Py_FatalError("can't initialize module BTree");
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
static char intSet_module_documentation[] = static char intSet_module_documentation[] =
"" ""
"\n$Id: intSet.c,v 1.21 2001/11/28 15:50:50 matt Exp $" "\n$Id: intSet.c,v 1.22 2002/03/21 15:48:53 htrd Exp $"
; ;
#include <limits.h> #include <limits.h>
...@@ -524,7 +524,6 @@ void ...@@ -524,7 +524,6 @@ void
initintSet(void) initintSet(void)
{ {
PyObject *m, *d; PyObject *m, *d;
char *rev="$Revision: 1.21 $";
UNLESS(ExtensionClassImported) return; UNLESS(ExtensionClassImported) return;
...@@ -546,10 +545,6 @@ initintSet(void) ...@@ -546,10 +545,6 @@ initintSet(void)
PyExtensionClass_Export(d,"intSet",intSetType); PyExtensionClass_Export(d,"intSet",intSetType);
PyDict_SetItemString(d, "__version__",
PyString_FromStringAndSize(rev+11,strlen(rev+11)-2));
/* Check for errors */ /* Check for errors */
if (PyErr_Occurred()) if (PyErr_Occurred())
Py_FatalError("can't initialize module intSet"); Py_FatalError("can't initialize module intSet");
......
/* /*
* $Id: cPickle.c,v 1.73 2001/04/10 16:55:33 jim Exp $ * $Id: cPickle.c,v 1.74 2002/03/21 15:48:54 htrd Exp $
* *
* Copyright (c) 1996-1998, Digital Creations, Fredericksburg, VA, USA. * Copyright (c) 1996-1998, Digital Creations, Fredericksburg, VA, USA.
* All rights reserved. * All rights reserved.
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
static char cPickle_module_documentation[] = static char cPickle_module_documentation[] =
"C implementation and optimization of the Python pickle module\n" "C implementation and optimization of the Python pickle module\n"
"\n" "\n"
"$Id: cPickle.c,v 1.73 2001/04/10 16:55:33 jim Exp $\n" "$Id: cPickle.c,v 1.74 2002/03/21 15:48:54 htrd Exp $\n"
; ;
#include "Python.h" #include "Python.h"
...@@ -4404,8 +4404,7 @@ init_stuff(PyObject *module, PyObject *module_dict) { ...@@ -4404,8 +4404,7 @@ init_stuff(PyObject *module, PyObject *module_dict) {
#endif #endif
DL_EXPORT(void) DL_EXPORT(void)
initcPickle() { initcPickle() {
PyObject *m, *d, *v; PyObject *m, *d;
char *rev="$Revision: 1.73 $";
PyObject *format_version; PyObject *format_version;
PyObject *compatible_formats; PyObject *compatible_formats;
...@@ -4420,8 +4419,6 @@ initcPickle() { ...@@ -4420,8 +4419,6 @@ initcPickle() {
/* Add some symbolic constants to the module */ /* Add some symbolic constants to the module */
d = PyModule_GetDict(m); d = PyModule_GetDict(m);
PyDict_SetItemString(d,"__version__", v = PyString_FromString(rev));
Py_XDECREF(v);
format_version = PyString_FromString("1.3"); format_version = PyString_FromString("1.3");
compatible_formats = Py_BuildValue("[sss]", "1.0", "1.1", "1.2"); compatible_formats = Py_BuildValue("[sss]", "1.0", "1.1", "1.2");
......
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
DAMAGE. DAMAGE.
$Id: cAccessControl.c,v 1.14 2002/02/01 18:08:10 matt Exp $ $Id: cAccessControl.c,v 1.15 2002/03/21 15:48:54 htrd Exp $
If you have questions regarding this software, If you have questions regarding this software,
contact: contact:
...@@ -2077,7 +2077,6 @@ static struct PyMethodDef dtml_methods[] = { ...@@ -2077,7 +2077,6 @@ static struct PyMethodDef dtml_methods[] = {
void initcAccessControl(void) { void initcAccessControl(void) {
PyObject *module; PyObject *module;
PyObject *dict; PyObject *dict;
char *rev = "$Revision: 1.14 $";
PURE_MIXIN_CLASS(RestrictedDTMLMixin, PURE_MIXIN_CLASS(RestrictedDTMLMixin,
"A mix-in for derivatives of DT_String.String " "A mix-in for derivatives of DT_String.String "
"that adds Zope security." "that adds Zope security."
...@@ -2098,16 +2097,13 @@ void initcAccessControl(void) { ...@@ -2098,16 +2097,13 @@ void initcAccessControl(void) {
module = Py_InitModule3("cAccessControl", module = Py_InitModule3("cAccessControl",
cAccessControl_methods, cAccessControl_methods,
"$Id: cAccessControl.c,v 1.14 2002/02/01 18:08:10 matt Exp $\n"); "$Id: cAccessControl.c,v 1.15 2002/03/21 15:48:54 htrd Exp $\n");
aq_init(); /* For Python <= 2.1.1, aq_init() should be after aq_init(); /* For Python <= 2.1.1, aq_init() should be after
Py_InitModule(). */ Py_InitModule(). */
dict = PyModule_GetDict(module); dict = PyModule_GetDict(module);
PyDict_SetItemString(dict, "__version__",
PyString_FromStringAndSize(rev+11,strlen(rev+11)-2));
PyDict_SetItemString(dict, "_what_not_even_god_should_do", PyDict_SetItemString(dict, "_what_not_even_god_should_do",
_what_not_even_god_should_do); _what_not_even_god_should_do);
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
****************************************************************************/ ****************************************************************************/
static char cDocumentTemplate_module_documentation[] = static char cDocumentTemplate_module_documentation[] =
"" ""
"\n$Id: cDocumentTemplate.c,v 1.42 2001/11/28 15:50:55 matt Exp $" "\n$Id: cDocumentTemplate.c,v 1.43 2002/03/21 15:48:54 htrd Exp $"
; ;
#include "ExtensionClass.h" #include "ExtensionClass.h"
...@@ -867,7 +867,6 @@ void ...@@ -867,7 +867,6 @@ void
initcDocumentTemplate(void) initcDocumentTemplate(void)
{ {
PyObject *m, *d; PyObject *m, *d;
char *rev="$Revision: 1.42 $";
DictInstanceType.ob_type=&PyType_Type; DictInstanceType.ob_type=&PyType_Type;
...@@ -910,7 +909,4 @@ initcDocumentTemplate(void) ...@@ -910,7 +909,4 @@ initcDocumentTemplate(void)
PyExtensionClass_Export(d,"InstanceDict",InstanceDictType); PyExtensionClass_Export(d,"InstanceDict",InstanceDictType);
PyExtensionClass_Export(d,"TemplateDict",MMtype); PyExtensionClass_Export(d,"TemplateDict",MMtype);
PyDict_SetItemString(d, "__version__",
PyString_FromStringAndSize(rev+11,strlen(rev+11)-2));
} }
...@@ -527,7 +527,7 @@ static char Splitter_module_documentation[] = ...@@ -527,7 +527,7 @@ static char Splitter_module_documentation[] =
"\n" "\n"
"for use in an inverted index\n" "for use in an inverted index\n"
"\n" "\n"
"$Id: ZopeSplitter.c,v 1.7 2002/01/21 19:28:55 andreasjung Exp $\n" "$Id: ZopeSplitter.c,v 1.8 2002/03/21 15:48:54 htrd Exp $\n"
; ;
...@@ -535,7 +535,6 @@ void ...@@ -535,7 +535,6 @@ void
initZopeSplitter(void) initZopeSplitter(void)
{ {
PyObject *m, *d; PyObject *m, *d;
char *rev="$Revision: 1.7 $";
/* Create the module and add the functions */ /* Create the module and add the functions */
m = Py_InitModule4("ZopeSplitter", Splitter_module_methods, m = Py_InitModule4("ZopeSplitter", Splitter_module_methods,
...@@ -544,8 +543,6 @@ initZopeSplitter(void) ...@@ -544,8 +543,6 @@ initZopeSplitter(void)
/* Add some symbolic constants to the module */ /* Add some symbolic constants to the module */
d = PyModule_GetDict(m); d = PyModule_GetDict(m);
PyDict_SetItemString(d, "__version__",
PyString_FromStringAndSize(rev+11,strlen(rev+11)-2));
if (PyErr_Occurred()) if (PyErr_Occurred())
Py_FatalError("can't initialize module Splitter"); Py_FatalError("can't initialize module Splitter");
......
...@@ -406,7 +406,7 @@ static char Splitter_module_documentation[] = ...@@ -406,7 +406,7 @@ static char Splitter_module_documentation[] =
"\n" "\n"
"for use in an inverted index\n" "for use in an inverted index\n"
"\n" "\n"
"$Id: Splitter.c,v 1.18 2001/11/28 15:51:11 matt Exp $\n" "$Id: Splitter.c,v 1.19 2002/03/21 15:48:55 htrd Exp $\n"
; ;
...@@ -414,7 +414,6 @@ void ...@@ -414,7 +414,6 @@ void
initSplitter(void) initSplitter(void)
{ {
PyObject *m, *d; PyObject *m, *d;
char *rev="$Revision: 1.18 $";
/* Create the module and add the functions */ /* Create the module and add the functions */
m = Py_InitModule4("Splitter", Splitter_module_methods, m = Py_InitModule4("Splitter", Splitter_module_methods,
...@@ -423,8 +422,6 @@ initSplitter(void) ...@@ -423,8 +422,6 @@ initSplitter(void)
/* Add some symbolic constants to the module */ /* Add some symbolic constants to the module */
d = PyModule_GetDict(m); d = PyModule_GetDict(m);
PyDict_SetItemString(d, "__version__",
PyString_FromStringAndSize(rev+11,strlen(rev+11)-2));
if (PyErr_Occurred()) Py_FatalError("can't initialize module Splitter"); if (PyErr_Occurred()) Py_FatalError("can't initialize module Splitter");
} }
...@@ -71,7 +71,7 @@ my_StartElementHandler(void *userdata, const char *name, const char **atts) { ...@@ -71,7 +71,7 @@ my_StartElementHandler(void *userdata, const char *name, const char **atts) {
PyObject *attrs_obj; PyObject *attrs_obj;
int attrs_len; int attrs_len;
const char **attrs_p, **attrs_k; const char **attrs_p, **attrs_k;
if (self->StartElementHandler != Py_None) { if (self->StartElementHandler != Py_None) {
if (self->attrdict) { if (self->attrdict) {
...@@ -709,13 +709,13 @@ static struct PyMethodDef pyexpat_methods[] = { ...@@ -709,13 +709,13 @@ static struct PyMethodDef pyexpat_methods[] = {
/* Initialization function for the module (*must* be called initpyexpat) */ /* Initialization function for the module (*must* be called initpyexpat) */
static char pyexpat_module_documentation[] = static char pyexpat_module_documentation[] =
"" "$Id: dcpyexpat.c,v 1.4 2002/03/21 15:48:56 htrd Exp $"
; ;
void void
initdcpyexpat(void) { initdcpyexpat(void) {
PyObject *m, *d; PyObject *m, *d;
char *rev="$Revision: 1.3 $"; char *rev="$Revision: 1.4 $";
Xmlparsetype.ob_type = &PyType_Type; Xmlparsetype.ob_type = &PyType_Type;
...@@ -727,10 +727,6 @@ initdcpyexpat(void) { ...@@ -727,10 +727,6 @@ initdcpyexpat(void) {
ErrorObject = PyString_FromString("pyexpat.error"); ErrorObject = PyString_FromString("pyexpat.error");
PyDict_SetItemString(d, "error", ErrorObject); PyDict_SetItemString(d, "error", ErrorObject);
PyDict_SetItemString(d,"__version__",
PyString_FromStringAndSize(rev+11,
strlen(rev+11)-2));
#define MYCONST(name) \ #define MYCONST(name) \
PyDict_SetItemString(d, #name, PyInt_FromLong(name)) PyDict_SetItemString(d, #name, PyInt_FromLong(name))
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
# All Rights Reserved. # All Rights Reserved.
# #
RCS_ID = '$Id: ftp_server.py,v 1.18 2001/07/09 15:13:06 andreas Exp $' RCS_ID = '$Id: ftp_server.py,v 1.19 2002/03/21 15:48:53 htrd Exp $'
# An extensible, configurable, asynchronous FTP server. # An extensible, configurable, asynchronous FTP server.
# #
...@@ -48,7 +48,10 @@ import time ...@@ -48,7 +48,10 @@ import time
# 2) carefully control the effective uid around filesystem accessing # 2) carefully control the effective uid around filesystem accessing
# methods, using try/finally. [this seems to work] # methods, using try/finally. [this seems to work]
VERSION = string.split(RCS_ID)[2] if RCS_ID.startswith('$Id: '):
VERSION = string.split(RCS_ID)[2]
else:
VERSION = '0.0'
from counter import counter from counter import counter
import producers import producers
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
# All Rights Reserved. # All Rights Reserved.
# #
RCS_ID = '$Id: http_server.py,v 1.30 2001/09/20 13:29:28 andreasjung Exp $' RCS_ID = '$Id: http_server.py,v 1.31 2002/03/21 15:48:53 htrd Exp $'
# python modules # python modules
import os import os
...@@ -28,7 +28,10 @@ import producers ...@@ -28,7 +28,10 @@ import producers
import status_handler import status_handler
import logger import logger
VERSION_STRING = string.split(RCS_ID)[2] if RCS_ID.startswith('$Id: '):
VERSION_STRING = string.split(RCS_ID)[2]
else:
VERSION_STRING = '0.0'
from counter import counter from counter import counter
from urllib import unquote from urllib import unquote
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
# python REPL channel. # python REPL channel.
# #
RCS_ID = '$Id: monitor.py,v 1.12 2001/05/01 11:44:48 andreas Exp $' RCS_ID = '$Id: monitor.py,v 1.13 2002/03/21 15:48:53 htrd Exp $'
import md5 import md5
import socket import socket
...@@ -13,7 +13,10 @@ import string ...@@ -13,7 +13,10 @@ import string
import sys import sys
import time import time
VERSION = string.split(RCS_ID)[2] if RCS_ID.startswith('$Id: '):
VERSION = string.split(RCS_ID)[2]
else:
VERSION = '0.0'
import asyncore import asyncore
import asynchat import asynchat
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
# Author: Sam Rushing <rushing@nightmare.com> # Author: Sam Rushing <rushing@nightmare.com>
# #
RCS_ID = '$Id: resolver.py,v 1.9 2001/05/01 11:44:49 andreas Exp $' RCS_ID = '$Id: resolver.py,v 1.10 2002/03/21 15:48:53 htrd Exp $'
# Fast, low-overhead asynchronous name resolver. uses 'pre-cooked' # Fast, low-overhead asynchronous name resolver. uses 'pre-cooked'
...@@ -19,7 +19,10 @@ import sys ...@@ -19,7 +19,10 @@ import sys
import time import time
from counter import counter from counter import counter
VERSION = string.split(RCS_ID)[2] if RCS_ID.startswith('$Id: '):
VERSION = string.split(RCS_ID)[2]
else:
VERSION = '0.0'
# header # header
# 1 1 1 1 1 1 # 1 1 1 1 1 1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment