[pypy-commit] pypy kill-someobject: Make pyexpact use the new API

alex_gaynor noreply at buildbot.pypy.org
Fri Oct 12 14:56:28 CEST 2012


Author: Alex Gaynor <alex.gaynor at gmail.com>
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


More information about the pypy-commit mailing list