summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2008-04-15 06:43:13 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2008-04-15 06:43:13 (GMT)
commit32dde22186efbbfcfb275ac9542b3e62a9b5cf1b (patch)
tree70fae01420cd0287afb1565f4e80bba035b85540 /Python
parentd6372b94a5a240da980a7973dc693e4998978edb (diff)
downloadcpython-32dde22186efbbfcfb275ac9542b3e62a9b5cf1b.zip
cpython-32dde22186efbbfcfb275ac9542b3e62a9b5cf1b.tar.gz
cpython-32dde22186efbbfcfb275ac9542b3e62a9b5cf1b.tar.bz2
Merged revisions 61440-61441,61443,61445-61448,61451-61452,61455-61457,61459-61464,61466-61467,61469-61470,61476-61477,61479,61481-61482,61485,61487,61490,61493-61494,61497,61499-61502,61505-61506,61508,61511-61514,61519,61521-61522,61530-61531,61533-61537,61541-61555,61557-61558,61561-61562,61566-61569,61572-61574,61578-61579,61583-61584,61588-61589,61592,61594,61598-61601,61603-61604,61607-61612,61617,61619-61620,61624,61626,61628-61630,61635-61638,61640-61643,61645,61648,61653-61655,61659-61662,61664,61666,61668-61671,61673,61675,61679-61680,61682,61685-61686,61689-61695,61697-61699,61701-61703,61706,61710,61713,61717,61723,61726-61730,61736,61738,61740,61742,61745-61752,61754-61760,61762-61764,61768,61770-61772,61774-61775,61784-61787,61789-61792,61794-61795,61797-61806,61808-61809,61811-61812,61814-61819,61824,61826-61833,61835-61840,61843-61845,61848,61850,61854-61862,61865-61866,61868,61872-61873,61876-61877,61883-61888,61890-61891,61893-61899,61901-61903,61905-61912,61914,61917,61920-61921,61927,61930,61932-61934,61939,61941-61942,61944-61951,61955,61960-61963,61980,61982-61983,61991,61994-61996,62001-62003,62008-62010,62016-62017,62022,62024,62027,62031-62034,62041,62045-62046,62055-62058,62060-62066,62068-62074,62076-62079,62081-62083,62086-62089,62092-62094,62098,62101,62104,62106-62109,62115-62122,62124-62125,62128,62130,62132,62134-62135,62137,62139-62140,62144,62146,62151,62155,62157,62162-62166,62171-62172,62175-62176,62178,62181-62186,62188-62192,62196,62200-62203,62206,62211-62213,62215-62218,62222,62224-62226,62228,62232,62236,62240-62245,62248,62250-62254,62256-62258,62262,62264-62265,62267-62270,62272-62276,62280-62288,62291-62292,62299-62301,62307,62312,62316-62318,62322-62331,62333-62337,62339-62344,62346-62348 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r62323 | brett.cannon | 2008-04-13 10:09:43 -0700 (Sun, 13 Apr 2008) | 3 lines Add an explicit check for output in a test to try to diagnose a failure on Windows. ........ r62324 | brett.cannon | 2008-04-13 10:41:31 -0700 (Sun, 13 Apr 2008) | 3 lines Fix spliting on colons on Windows machines with a file path by limiting the number of splits. ........ r62329 | benjamin.peterson | 2008-04-13 13:35:56 -0700 (Sun, 13 Apr 2008) | 2 lines #2627 Let it be known what pgen generates ........ r62330 | benjamin.peterson | 2008-04-13 13:40:03 -0700 (Sun, 13 Apr 2008) | 2 lines Added an ignore file for Bazaar #2510 ........ r62331 | georg.brandl | 2008-04-13 13:50:29 -0700 (Sun, 13 Apr 2008) | 2 lines Improve -X error message. ........ r62334 | andrew.kuchling | 2008-04-13 15:39:12 -0700 (Sun, 13 Apr 2008) | 1 line Add example ........ r62340 | amaury.forgeotdarc | 2008-04-14 12:55:40 -0700 (Mon, 14 Apr 2008) | 2 lines Update project files for all Windows supported compilers ........ r62341 | amaury.forgeotdarc | 2008-04-14 13:07:48 -0700 (Mon, 14 Apr 2008) | 6 lines Correct a refleak found by "regrtest.py -R:: test_structmembers" Some other minor updates in _warnings.c: - make a function static - rename a shadowing local variable ........ r62347 | andrew.kuchling | 2008-04-14 19:24:15 -0700 (Mon, 14 Apr 2008) | 1 line Various items; begin writing the SSL section ........ r62348 | neal.norwitz | 2008-04-14 20:46:21 -0700 (Mon, 14 Apr 2008) | 1 line Prevent namespace pollution, add static for internal functions ........
Diffstat (limited to 'Python')
-rw-r--r--Python/_warnings.c11
-rw-r--r--Python/getopt.c2
-rw-r--r--Python/graminit.c2
3 files changed, 9 insertions, 6 deletions
diff --git a/Python/_warnings.c b/Python/_warnings.c
index 7472ab6..d5c4ebe 100644
--- a/Python/_warnings.c
+++ b/Python/_warnings.c
@@ -61,7 +61,7 @@ get_warnings_attr(const char *attr)
}
-PyObject *
+static PyObject *
get_once_registry(void)
{
PyObject *registry;
@@ -378,16 +378,17 @@ warn_explicit(PyObject *category, PyObject *message,
show_warning(filename, lineno, text, category, sourceline);
}
else {
- PyObject *result;
+ PyObject *res;
- result = PyObject_CallFunctionObjArgs(show_fxn, message, category,
+ res = PyObject_CallFunctionObjArgs(show_fxn, message, category,
filename, lineno_obj,
Py_None,
sourceline ?
sourceline: Py_None,
NULL);
- Py_XDECREF(result);
- if (result == NULL)
+ Py_DECREF(show_fxn);
+ Py_XDECREF(res);
+ if (res == NULL)
goto cleanup;
}
}
diff --git a/Python/getopt.c b/Python/getopt.c
index 1baf872..da9341f 100644
--- a/Python/getopt.c
+++ b/Python/getopt.c
@@ -91,7 +91,7 @@ int _PyOS_GetOpt(int argc, wchar_t **argv, wchar_t *optstring)
if (option == 'X') {
fprintf(stderr,
- "-X is reserved for non-standard arguments\n");
+ "-X is reserved for implementation-specific arguments\n");
return '_';
}
diff --git a/Python/graminit.c b/Python/graminit.c
index 081a072..e26bcc5 100644
--- a/Python/graminit.c
+++ b/Python/graminit.c
@@ -1,3 +1,5 @@
+/* Generated by Parser/pgen */
+
#include "pgenheaders.h"
#include "grammar.h"
static arc arcs_0_0[3] = {
option value='core_8_5_branch_fix_1997007'>core_8_5_branch_fix_1997007 Tcl is a high-level, general-purpose, interpreted, dynamic programming language. It was designed with the goal of being very simple but powerful.
summaryrefslogtreecommitdiffstats
Commit message (Expand)AuthorAgeFilesLines
* merge core-8-6-branchbug_67aa9a2070jan.nijtmans2017-06-021-10/+8
|\
| * Change refCount field in DictObj from int to size_t. Cherry-picked from "sebr...jan.nijtmans2017-06-021-10/+8
* | Fix [67aa9a207037ae67f9014b544c3db34fa732f2dc|67aa9a2070]: Security: Invalid ...jan.nijtmans2017-06-022-3/+34
|/
* fixed [a3fb3356b76ec4a853d1b86aadc08675f8bef359]: segfault by sorting of the ...sebres2017-05-291-19/+18
* Tcl_UtfToUniChar() -> TclUtfToUniChar() in various places: No change in funct...jan.nijtmans2017-05-299-59/+59
* autoconfjan.nijtmans2017-05-221-4/+6
* If SHLIB_VERSION is specified as empty, don't let the SHLIB filename end with...jan.nijtmans2017-05-221-7/+6
* Cherrypick Fix build on OpenBSD. [82701b94c4] missed a couple of bits.jan.nijtmans2017-05-212-2/+6
* fix build failure with TCL_MEM_DEBUG introduced by [8b717dc06a3e3d49]aspect2017-05-191-3/+3
* Fix test-case numberingjan.nijtmans2017-05-181-1/+1
* autoconf-2.59dgp2017-05-181-38/+15
* Cherry-pick [http://core.tcl.tk/tclconfig/info/18e79736d236d15d|All the world...jan.nijtmans2017-05-182-37/+14
* Fix [6ca52aec14e0b33543d3cd9895f060b852ac4dbc|6ca52aec14]: HTTP package: Memo...jan.nijtmans2017-05-095-9/+18
|\
| * fix chan leak with http keepalive vs close (bug [6ca52aec14])bug_6ca52aec14aspect2017-02-122-3/+12
* | Let local variables declared from within macro's always start with underscore...jan.nijtmans2017-05-092-41/+41
* | [6015221f59] Segfault after overflow of [binary] field specifier numeric count.dgp2017-05-052-1/+21
|\ \
| * | [6015221f59] Segfault after overflow of [binary] field specifier numeric count.dgp2017-05-052-1/+21
* | | Use GetModuleHandle() in stead of LoadLibrary() for ntdll, which is already l...jan.nijtmans2017-05-041-11/+7
|\ \ \ | |/ /
| * | Cherry-pick/backport [65cc894ac5c24495|65cc894ac5]: fix off-by-one possible b...jan.nijtmans2017-05-041-15/+12
* | | Fix gcc warning: unused variable wakeEventjan.nijtmans2017-05-041-2/+1
* | | Use GetModuleHandle() in stead of LoadLibrary() when the handle is needed for...jan.nijtmans2017-05-035-24/+14
|\ \ \ | |/ /
| * | Use GetModuleHandle() in stead of LoadLibrary() when the handle is needed for...jan.nijtmans2017-05-034-103/+92
* | | [f9fe90d0fa] [file join] normalization. See filesystem-1.52*dgp2017-05-012-1/+21
|\ \ \ | |/ /
| * | [f9fe90d0fa] [file join] normalization. See filesystem-1.52*dgp2017-05-012-1/+21
* | | Fix [8bd13f07bde6fb0631f27927e36461fdefe8ca95|8bd13f07bd]: Closing tcl pipes ...jan.nijtmans2017-05-016-391/+643
|\ \ \
| * \ \ merge core-8-6-branchfix_1997007jan.nijtmans2017-04-2827-150/+299
| |\ \ \
| * | | | [win] fixes "wrong" checking of the flag TCL_CLOSE_READ in close2proc (using ...sebres2017-04-121-3/+2
| * | | | fixes sporadically errors in several not event-driven test cases zlib-8.x (wr...sebres2017-04-111-7/+7
| * | | | improves robustness of the socket tests against busy random ports (fixed spor...sebres2017-04-111-1/+16
| * | | | code review, robustness increase, avoid infinite wait by exit, thread exit an...sebres2017-04-114-332/+132
| * | | | added wake-up event to prevent possible dead-locks by some waiting thread (e....sebres2017-04-112-14/+27
| * | | | prepared to use pipe-helpers (TI-structure handling) for all pipe-workers (tc...sebres2017-04-112-334/+436
| * | | | code review and fix small memory leak using ckalloc, without finalization of ...sebres2017-04-111-36/+71
| * | | | shared structures of pipe-workers rewritten using atomic state of the thread; sebres2017-04-113-236/+371
| * | | | fix typo- resp. copy-paste-bug (using wrong threadInfo pointer in ConsoleOutp...sebres2017-04-111-1/+1
| * | | | the same handling to initialize thread without suspend/resume helpers (otherw...sebres2017-04-05