[PATCH 1 of 6] imported patch osutil.c-py3k-port.diff

Dan Villiom Podlaski Christiansen danchr at gmail.com
Tue Jun 8 14:29:58 CDT 2010


On 8 Jun 2010, at 19:57, Renato Cunha wrote:

> +#ifdef IS_PY3K
> +static PyTypeObject listdir_stat_type = {
> +    PyVarObject_HEAD_INIT(NULL, 0)
> +    "osutil.stat",             /* tp_name */
…
> static PyTypeObject listdir_stat_type = {
> 	PyObject_HEAD_INIT(NULL)
> 	0,                         /*ob_size*/

Your replacement isn't quite equivalent to the original; you're using Py*Var*Object_HEAD_INIT() instead of PyObject_HEAD_INIT(). Is there a reason for that, or was it just an oversight?

--

Dan Villiom Podlaski Christiansen
danchr at gmail.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1943 bytes
Desc: not available
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20100608/66cab6a6/attachment.bin>


More information about the Mercurial-devel mailing list