Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZEO
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
ZEO
Commits
4f769306
Commit
4f769306
authored
Nov 26, 2001
by
Andreas Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
uninitialized error object got passed to PyErr_SetString.
Replaced it with a standard ValueError exception
parent
44b9e7fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
src/ZODB/TimeStamp.c
src/ZODB/TimeStamp.c
+3
-4
No files found.
src/ZODB/TimeStamp.c
View file @
4f769306
...
...
@@ -86,7 +86,7 @@
static
char
TimeStamp_module_documentation
[]
=
"Defines 64-bit TimeStamp objects used as ZODB serial numbers.
\n
"
"
\n
"
"
\n
$Id: TimeStamp.c,v 1.
8 2001/11/08 17:06:27 bwarsaw
Exp $
\n
"
;
"
\n
$Id: TimeStamp.c,v 1.
9 2001/11/26 20:33:24 andreasjung
Exp $
\n
"
;
#include <stdlib.h>
#include <time.h>
...
...
@@ -96,7 +96,6 @@ static char TimeStamp_module_documentation[] =
#include "Python.h"
#endif
static
PyObject
*
ErrorObject
;
/* ----------------------------------------------------- */
...
...
@@ -184,7 +183,7 @@ TimeStamp___init__(TimeStamp *self, PyObject *args)
{
if
(
m
!=
8
)
{
PyErr_SetString
(
ErrorObject
,
"8-character string expected"
);
PyErr_SetString
(
PyExc_ValueError
,
"8-character string expected"
);
return
NULL
;
}
memcpy
(
self
->
data
,
s
,
8
);
...
...
@@ -485,7 +484,7 @@ void
initTimeStamp
(
void
)
{
PyObject
*
m
,
*
d
,
*
s
;
char
*
rev
=
"$Revision: 1.
8
$"
;
char
*
rev
=
"$Revision: 1.
9
$"
;
if
(
TimeStamp_init_gmoff
()
<
0
)
return
;
if
(
!
ExtensionClassImported
)
return
;
...
...
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