You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by hw...@apache.org on 2011/08/06 17:52:49 UTC
svn commit: r1154532 -
/subversion/branches/fs-py/subversion/libsvn_fs_py/py_util.c
Author: hwright
Date: Sat Aug 6 15:52:49 2011
New Revision: 1154532
URL: http://svn.apache.org/viewvc?rev=1154532&view=rev
Log:
On the fs-py branch:
Remove a unneeded static semi-global variable.
* subversion/libsvn_fs_py/py_util.c
(p_exception_type): Remove.
(finalize_python): Don't destroy the above.
(svn_fs_py__init_python): Don't initialize the above.
Modified:
subversion/branches/fs-py/subversion/libsvn_fs_py/py_util.c
Modified: subversion/branches/fs-py/subversion/libsvn_fs_py/py_util.c
URL: http://svn.apache.org/viewvc/subversion/branches/fs-py/subversion/libsvn_fs_py/py_util.c?rev=1154532&r1=1154531&r2=1154532&view=diff
==============================================================================
--- subversion/branches/fs-py/subversion/libsvn_fs_py/py_util.c (original)
+++ subversion/branches/fs-py/subversion/libsvn_fs_py/py_util.c Sat Aug 6 15:52:49 2011
@@ -31,7 +31,6 @@
#define ROOT_MODULE_NAME "svn"
#define FS_MODULE_NAME "svn.fs"
-static PyObject *p_exception_type;
static PyObject *p_root_module;
static svn_error_t *
@@ -173,8 +172,6 @@ load_error:
static apr_status_t
finalize_python(void *data)
{
- Py_XDECREF(p_exception_type);
- p_exception_type = NULL;
Py_XDECREF(p_root_module);
p_root_module = NULL;
@@ -204,9 +201,6 @@ svn_fs_py__init_python(apr_pool_t *pool)
_("Cannot load Python module"));
}
- p_exception_type = PyObject_GetAttrString(p_root_module,
- "SubversionException");
-
return SVN_NO_ERROR;
}