Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 96431 Details for
Bug 146868
jythonc -2.1 uses reserved assert function from Java
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
modified 2.1-assert.patch that fixes the problem
2.1-assert.patch (text/plain), 2.50 KB, created by
Joel
on 2006-09-08 12:41:11 UTC
(
hide
)
Description:
modified 2.1-assert.patch that fixes the problem
Filename:
MIME Type:
Creator:
Joel
Created:
2006-09-08 12:41:11 UTC
Size:
2.50 KB
patch
obsolete
>--- jython-2.1/com/ziclix/python/sql/pipe/Pipe.java.orig 2006-07-29 21:31:34.000000000 +0200 >+++ jython-2.1/com/ziclix/python/sql/pipe/Pipe.java 2006-07-29 21:31:41.000000000 +0200 >@@ -93,7 +93,7 @@ > new Integer(sinkRunner.getCount()) }; > String msg = zxJDBC.getString("inconsistentRowCount", counts); > >- Py.assert(Py.Zero, Py.newString(msg)); >+ Py.assert_(Py.Zero, Py.newString(msg)); > } > > return Py.newInteger(sinkRunner.getCount()); >--- jython-2.1/org/python/compiler/CodeCompiler.java.orig 2006-07-29 21:28:47.000000000 +0200 >+++ jython-2.1/org/python/compiler/CodeCompiler.java 2006-07-29 21:30:13.000000000 +0200 >@@ -817,14 +817,14 @@ > node.getChild(1).visit(this); > if (mrefs.assert2 == 0) { > mrefs.assert2 = code.pool.Methodref( >- "org/python/core/Py", "assert", >+ "org/python/core/Py", "assert_", > "(" + $pyObj + $pyObj + ")V"); > } > code.invokestatic(mrefs.assert2); > } else { > if (mrefs.assert1 == 0) { > mrefs.assert1 = code.pool.Methodref( >- "org/python/core/Py", "assert", >+ "org/python/core/Py", "assert_", > "(" + $pyObj + ")V"); > } > code.invokestatic(mrefs.assert1); >--- jython-2.1/org/python/core/Py.java.orig 2006-07-29 21:29:19.000000000 +0200 >+++ jython-2.1/org/python/core/Py.java 2006-07-29 21:30:40.000000000 +0200 >@@ -986,14 +986,14 @@ > > > /* Equivalent to Python's assert statement */ >- public static void assert(PyObject test, PyObject message) { >+ public static void assert_(PyObject test, PyObject message) { > if (!test.__nonzero__()) { > throw new PyException(Py.AssertionError, message); > } > } > >- public static void assert(PyObject test) { >- assert(test, Py.None); >+ public static void assert_(PyObject test) { >+ assert_(test, Py.None); > } > > /* Helpers to implement finally clauses */ >--- jython-2.1/Tools/jythonc/SimpleCompiler.py.orig 2006-09-08 13:21:29.000000000 -0600 >+++ jython-2.1/Tools/jythonc/SimpleCompiler.py 2006-09-08 13:22:15.000000000 -0600 >@@ -577,7 +577,7 @@ > args.append(message.asAny()) > > return jast.If(self.frame.getglobal("__debug__").nonzero(), >- jast.InvokeStatic("Py", "assert", args)) >+ jast.InvokeStatic("Py", "assert_", args)) > > def return_stmt(self, value=None): > if value is None:
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 146868
: 96431