Update of /cvsroot/fink/dists/10.4-transitional/stable/main/finkinfo/languages
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10319
Modified Files:
python23.patch
Log Message:
Backport patchfile so that this one builds on Tiger, too.
Index: python23.patch
===================================================================
RCS file:
/cvsroot/fink/dists/10.4-transitional/stable/main/finkinfo/languages/python23.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- python23.patch 27 Apr 2005 03:40:33 -0000 1.1
+++ python23.patch 20 Mar 2006 21:46:52 -0000 1.2
@@ -200,3 +200,47 @@
def __repr__(self):
if inspect.stack()[1][3] == '?':
+--- Python-2.3.5_ori/Modules/readline.c 2004-10-09 19:43:03.000000000
+0200
++++ Python-2.3.5/Modules/readline.c 2005-07-02 09:06:06.000000000 +0200
+@@ -93,7 +93,7 @@
+ return Py_None;
+ }
+
+-static int history_length = -1; /* do not truncate history by default */
++static int _history_length = -1; /* do not truncate history by default */
+ PyDoc_STRVAR(doc_read_history_file,
+ "read_history_file([filename]) -> None\n\
+ Load a readline history file.\n\
+@@ -109,8 +109,8 @@
+ if (!PyArg_ParseTuple(args, "|z:write_history_file", &s))
+ return NULL;
+ errno = write_history(s);
+- if (!errno && history_length >= 0)
+- history_truncate_file(s, history_length);
++ if (!errno && _history_length >= 0)
++ history_truncate_file(s, _history_length);
+ if (errno)
+ return PyErr_SetFromErrno(PyExc_IOError);
+ Py_INCREF(Py_None);
+@@ -128,10 +128,10 @@
+ static PyObject*
+ set_history_length(PyObject *self, PyObject *args)
+ {
+- int length = history_length;
++ int length = _history_length;
+ if (!PyArg_ParseTuple(args, "i:set_history_length", &length))
+ return NULL;
+- history_length = length;
++ _history_length = length;
+ Py_INCREF(Py_None);
+ return Py_None;
+ }
+@@ -148,7 +148,7 @@
+ static PyObject*
+ get_history_length(PyObject *self, PyObject *noarg)
+ {
+- return PyInt_FromLong(history_length);
++ return PyInt_FromLong(_history_length);
+ }
+
+ PyDoc_STRVAR(get_history_length_doc,
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Fink-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-commits