Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZODB
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
ZODB
Commits
0d0f042e
Commit
0d0f042e
authored
Jun 20, 2001
by
matt@zope.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move error trap to inner function rather than outer
parent
75d26332
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
17 deletions
+13
-17
trunk/src/BTrees/BucketTemplate.c
trunk/src/BTrees/BucketTemplate.c
+13
-17
No files found.
trunk/src/BTrees/BucketTemplate.c
View file @
0d0f042e
...
...
@@ -82,7 +82,7 @@
****************************************************************************/
#define BUCKETTEMPLATE_C "$Id: BucketTemplate.c,v 1.1
6 2001/06/20 19:32:55
matt Exp $\n"
#define BUCKETTEMPLATE_C "$Id: BucketTemplate.c,v 1.1
7 2001/06/20 19:47:00
matt Exp $\n"
/*
** _bucket_get
...
...
@@ -1113,21 +1113,7 @@ _bucket__p_resolveConflict(PyObject *ob_type, PyObject *s[3])
Py_DECREF
(
b
[
1
]);
Py_DECREF
(
b
[
2
]);
return
r
;
}
static
PyObject
*
bucket__p_resolveConflict
(
Bucket
*
self
,
PyObject
*
args
)
{
PyObject
*
s
[
3
];
PyObject
*
result
;
UNLESS
(
PyArg_ParseTuple
(
args
,
"OOO"
,
&
s
[
0
],
&
s
[
1
],
&
s
[
2
]))
return
NULL
;
result
=
_bucket__p_resolveConflict
(
OBJECT
(
self
->
ob_type
),
s
);
/* Change any errors to ConflictErrors */
if
(
result
==
NULL
)
{
if
(
r
==
NULL
)
{
PyObject
*
error
;
PyObject
*
value
;
PyObject
*
traceback
;
...
...
@@ -1138,7 +1124,17 @@ bucket__p_resolveConflict(Bucket *self, PyObject *args)
PyErr_Restore
(
ConflictError
,
value
,
traceback
);
}
return
result
;
return
r
;
}
static
PyObject
*
bucket__p_resolveConflict
(
Bucket
*
self
,
PyObject
*
args
)
{
PyObject
*
s
[
3
];
UNLESS
(
PyArg_ParseTuple
(
args
,
"OOO"
,
&
s
[
0
],
&
s
[
1
],
&
s
[
2
]))
return
NULL
;
return
_bucket__p_resolveConflict
(
OBJECT
(
self
->
ob_type
),
s
);
}
#endif
...
...
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