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
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
Nicolas Wavrant
ZODB
Commits
cf112582
Commit
cf112582
authored
Sep 28, 2002
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a mysterious occurrence of 'dumps'. Found by pychecker. Jeremy
says it should be cPickle.dumps(), so do that.
parent
8cba5055
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
src/ZODB/BaseStorage.py
src/ZODB/BaseStorage.py
+4
-3
No files found.
src/ZODB/BaseStorage.py
View file @
cf112582
...
@@ -15,8 +15,9 @@
...
@@ -15,8 +15,9 @@
"""
"""
# Do this portably in the face of checking out with -kv
# Do this portably in the face of checking out with -kv
import
string
import
string
__version__
=
string
.
split
(
'$Revision: 1.2
3
$'
)[
-
2
:][
0
]
__version__
=
string
.
split
(
'$Revision: 1.2
4
$'
)[
-
2
:][
0
]
import
cPickle
import
ThreadLock
,
bpthread
import
ThreadLock
,
bpthread
import
time
,
UndoLogCompatible
import
time
,
UndoLogCompatible
import
POSException
import
POSException
...
@@ -138,9 +139,9 @@ class BaseStorage(UndoLogCompatible.UndoLogCompatible):
...
@@ -138,9 +139,9 @@ class BaseStorage(UndoLogCompatible.UndoLogCompatible):
desc
=
transaction
.
description
desc
=
transaction
.
description
ext
=
transaction
.
_extension
ext
=
transaction
.
_extension
if
ext
:
if
ext
:
ext
=
dumps
(
ext
,
1
)
ext
=
cPickle
.
dumps
(
ext
,
1
)
else
:
else
:
ext
=
""
ext
=
""
self
.
_ude
=
user
,
desc
,
ext
self
.
_ude
=
user
,
desc
,
ext
if
tid
is
None
:
if
tid
is
None
:
...
...
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