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
6ec07094
Commit
6ec07094
authored
Oct 04, 2001
by
Barry Warsaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
_initroot(): Since we have the ZERO global, we might as well use it.
parent
894b7ee4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
src/ZODB/tests/PackableStorage.py
src/ZODB/tests/PackableStorage.py
+2
-3
No files found.
src/ZODB/tests/PackableStorage.py
View file @
6ec07094
...
@@ -105,7 +105,7 @@ class PackableStorageBase:
...
@@ -105,7 +105,7 @@ class PackableStorageBase:
class
PackableStorage
(
PackableStorageBase
):
class
PackableStorage
(
PackableStorageBase
):
def
_initroot
(
self
):
def
_initroot
(
self
):
try
:
try
:
self
.
_storage
.
load
(
'
\
0
\
0
\
0
\
0
\
0
\
0
\
0
\
0
'
,
''
)
self
.
_storage
.
load
(
ZERO
,
''
)
except
KeyError
:
except
KeyError
:
import
PersistentMapping
import
PersistentMapping
from
ZODB.Transaction
import
Transaction
from
ZODB.Transaction
import
Transaction
...
@@ -116,8 +116,7 @@ class PackableStorage(PackableStorageBase):
...
@@ -116,8 +116,7 @@ class PackableStorage(PackableStorageBase):
t
=
Transaction
()
t
=
Transaction
()
t
.
description
=
'initial database creation'
t
.
description
=
'initial database creation'
self
.
_storage
.
tpc_begin
(
t
)
self
.
_storage
.
tpc_begin
(
t
)
self
.
_storage
.
store
(
'
\
0
\
0
\
0
\
0
\
0
\
0
\
0
\
0
'
,
self
.
_storage
.
store
(
ZERO
,
None
,
file
.
getvalue
(),
''
,
t
)
None
,
file
.
getvalue
(),
''
,
t
)
self
.
_storage
.
tpc_vote
(
t
)
self
.
_storage
.
tpc_vote
(
t
)
self
.
_storage
.
tpc_finish
(
t
)
self
.
_storage
.
tpc_finish
(
t
)
...
...
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