[pypy-commit] pypy kill-someobject: fix pyexpat
fijal
noreply at buildbot.pypy.org
Fri Oct 12 15:32:53 CEST 2012
Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: kill-someobject
Changeset: r58032:4f690387ead8
Date: 2012-10-12 14:50 +0200
http://bitbucket.org/pypy/pypy/changeset/4f690387ead8/
Log: fix pyexpat
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