Author: Alex Gaynor <[email protected]>
Branch: kill-someobject
Changeset: r58029:da5dc7152de3
Date: 2012-10-12 05:56 -0700
http://bitbucket.org/pypy/pypy/changeset/da5dc7152de3/
Log: Make pyexpact use the new API
diff --git a/pypy/module/pyexpat/interp_pyexpat.py
b/pypy/module/pyexpat/interp_pyexpat.py
--- a/pypy/module/pyexpat/interp_pyexpat.py
+++ b/pypy/module/pyexpat/interp_pyexpat.py
@@ -1,6 +1,6 @@
from pypy.interpreter.baseobjspace import Wrappable
from pypy.interpreter.typedef import TypeDef, GetSetProperty
-from pypy.interpreter.gateway import interp2app, unwrap_spec, W_Root
+from pypy.interpreter.gateway import interp2app, unwrap_spec, WrappedDefault
from pypy.interpreter.error import OperationError
from pypy.rlib import rgc
from pypy.rpython.lltypesystem import rffi, lltype
@@ -444,7 +444,8 @@
was successful."""
XML_SetParamEntityParsing(self.itself, flag)
- def UseForeignDTD(self, space, w_flag=True):
+ @unwrap_spec(w_flag=WrappedDefault(True))
+ def UseForeignDTD(self, space, w_flag):
"""UseForeignDTD([flag])
Allows the application to provide an artificial external subset if one is
not specified as part of the document instance. This readily allows the
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit