Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a44f3a3

Browse files
committed
Merged revisions 53912-53951 via svnmerge from
svn+ssh://[email protected]/python/trunk ........ r53919 | thomas.wouters | 2007-02-25 23:12:31 +0100 (Sun, 25 Feb 2007) | 8 lines Backported r51621 from p3yk: Don't use a fixed temporary name (gdbm). Don't use our own temp name creation (dbm). Should be backported to 2.5. ........ r53935 | georg.brandl | 2007-02-26 14:51:29 +0100 (Mon, 26 Feb 2007) | 2 lines Backport from Py3k branch: fix refleak in PyString_Format. ........ r53943 | jeremy.hylton | 2007-02-26 17:14:51 +0100 (Mon, 26 Feb 2007) | 2 lines Reformat long lines. ........ r53947 | neal.norwitz | 2007-02-26 18:01:08 +0100 (Mon, 26 Feb 2007) | 1 line Add Steven Bethard to help out with patches. ........ r53949 | georg.brandl | 2007-02-26 18:09:03 +0100 (Mon, 26 Feb 2007) | 3 lines Fix typo. ........ r53951 | neal.norwitz | 2007-02-26 19:10:47 +0100 (Mon, 26 Feb 2007) | 5 lines Fix a couple of problems in generating the AST code: * use %r instead of backticks since backticks are going away in Py3k * PyArena_Malloc() already sets PyErr_NoMemory so we don't need to do it again * the signature for ast2obj_int incorrectly used a bool, rather than a long ........
1 parent a88a033 commit a44f3a3

4 files changed

Lines changed: 68 additions & 177 deletions

File tree

Misc/developers.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ the format to accommodate documentation needs as they arise.
1717
Permissions History
1818
-------------------
1919

20+
- Steven Bethard (SF name "bediviere") added to the SourceForge Python
21+
project 26 Feb 2007, by NCN, as a tracker tech.
22+
2023
- Josiah Carlson (SF name "josiahcarlson") added to the SourceForge Python
2124
project 06 Jan 2007, by NCN, as a tracker tech. He will maintain asyncore.
2225

Parser/asdl_c.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -299,10 +299,8 @@ def emit(s, depth=0, reflow=1):
299299
emit('}', 1)
300300

301301
emit("p = (%s)PyArena_Malloc(arena, sizeof(*p));" % ctype, 1);
302-
emit("if (!p) {", 1)
303-
emit("PyErr_NoMemory();", 2)
302+
emit("if (!p)", 1)
304303
emit("return NULL;", 2)
305-
emit("}", 1)
306304
if union:
307305
self.emit_body_union(name, args, attrs)
308306
else:
@@ -474,7 +472,7 @@ def visitModule(self, mod):
474472
return PyBool_FromLong(b);
475473
}
476474
477-
static PyObject* ast2obj_int(bool b)
475+
static PyObject* ast2obj_int(long b)
478476
{
479477
return PyInt_FromLong(b);
480478
}

0 commit comments

Comments
 (0)