Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
zope.proxy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
zope.proxy
Commits
86236c40
Commit
86236c40
authored
Jun 14, 2011
by
Gediminas Paulauskas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support Python 3.2
parent
9d3b78a3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
setup.py
setup.py
+1
-0
src/zope/proxy/_zope_proxy_proxy.c
src/zope/proxy/_zope_proxy_proxy.c
+8
-4
No files found.
setup.py
View file @
86236c40
...
...
@@ -56,6 +56,7 @@ setup(name='zope.proxy',
'Programming Language :: Python :: 2.7'
,
'Programming Language :: Python :: 3'
,
'Programming Language :: Python :: 3.1'
,
'Programming Language :: Python :: 3.2'
,
'Natural Language :: English'
,
'Operating System :: OS Independent'
],
keywords
=
'proxy generic transparent'
,
...
...
src/zope/proxy/_zope_proxy_proxy.c
View file @
86236c40
...
...
@@ -53,9 +53,12 @@ empty_tuple = NULL;
#define MOD_DEF(ob, name, doc, methods) \
ob = Py_InitModule3(name, methods, doc);
#define PyCapsule_New(pointer, name, destr) \
PyCObject_FromVoidPtr(pointer, destr)
#else
#define IS_STRING PyUnicode_Check
#define IS_STRING PyUnicode_Check
#define MAKE_STRING(name) PyBytes_AS_STRING( \
PyUnicode_AsUTF8String(name))
...
...
@@ -73,6 +76,7 @@ empty_tuple = NULL;
#endif
/*
* Slot methods.
*/
...
...
@@ -924,7 +928,7 @@ ProxyType = {
wrap_init
,
/* tp_init */
0
,
/* tp_alloc */
wrap_new
,
/* tp_new */
0
,
/*
_
PyObject_GC_Del,*/
/* tp_free */
0
,
/*PyObject_GC_Del,*/
/* tp_free */
};
static
PyObject
*
...
...
@@ -1217,7 +1221,7 @@ MOD_INIT(_zope_proxy_proxy)
if
(
empty_tuple
==
NULL
)
empty_tuple
=
PyTuple_New
(
0
);
ProxyType
.
tp_free
=
_
PyObject_GC_Del
;
ProxyType
.
tp_free
=
PyObject_GC_Del
;
if
(
PyType_Ready
(
&
ProxyType
)
<
0
)
return
MOD_ERROR_VAL
;
...
...
@@ -1226,7 +1230,7 @@ MOD_INIT(_zope_proxy_proxy)
PyModule_AddObject
(
m
,
"ProxyBase"
,
(
PyObject
*
)
&
ProxyType
);
if
(
api_object
==
NULL
)
{
api_object
=
PyC
Object_FromVoidPtr
(
&
wrapper_capi
,
NULL
);
api_object
=
PyC
apsule_New
(
&
wrapper_capi
,
NULL
,
NULL
);
if
(
api_object
==
NULL
)
return
MOD_ERROR_VAL
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment