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
b9e24eb7
Commit
b9e24eb7
authored
Feb 20, 2013
by
Marius Gedminas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactoring, typo fixes
parent
c834a291
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
6 deletions
+3
-6
src/ZODB/FileStorage/fsoids.py
src/ZODB/FileStorage/fsoids.py
+1
-4
src/ZODB/scripts/fsoids.py
src/ZODB/scripts/fsoids.py
+1
-1
src/ZODB/serialize.py
src/ZODB/serialize.py
+1
-1
No files found.
src/ZODB/FileStorage/fsoids.py
View file @
b9e24eb7
...
@@ -16,8 +16,6 @@ import ZODB.FileStorage
...
@@ -16,8 +16,6 @@ import ZODB.FileStorage
from
ZODB.utils
import
get_pickle_metadata
,
p64
,
oid_repr
,
tid_repr
from
ZODB.utils
import
get_pickle_metadata
,
p64
,
oid_repr
,
tid_repr
from
ZODB.serialize
import
get_refs
from
ZODB.serialize
import
get_refs
from
ZODB.TimeStamp
import
TimeStamp
from
ZODB.TimeStamp
import
TimeStamp
from
six.moves
import
map
from
six.moves
import
zip
# Extract module.class string from pickle.
# Extract module.class string from pickle.
def
get_class
(
pickle
):
def
get_class
(
pickle
):
...
@@ -82,8 +80,7 @@ class Tracer(object):
...
@@ -82,8 +80,7 @@ class Tracer(object):
self
.
oids
[
oid
]
=
0
# 0 revisions seen so far
self
.
oids
[
oid
]
=
0
# 0 revisions seen so far
def
_msg
(
self
,
oid
,
tid
,
*
args
):
def
_msg
(
self
,
oid
,
tid
,
*
args
):
args
=
map
(
str
,
args
)
self
.
msgs
.
append
(
(
oid
,
tid
,
' '
.
join
(
map
(
str
,
args
)))
)
self
.
msgs
.
append
(
(
oid
,
tid
,
' '
.
join
(
args
))
)
self
.
_produced_msg
=
True
self
.
_produced_msg
=
True
def
report
(
self
):
def
report
(
self
):
...
...
src/ZODB/scripts/fsoids.py
View file @
b9e24eb7
#!/usr/bin/
env python2.3
#!/usr/bin/
python
##############################################################################
##############################################################################
#
#
...
...
src/ZODB/serialize.py
View file @
b9e24eb7
...
@@ -707,7 +707,7 @@ def get_refs(a_pickle):
...
@@ -707,7 +707,7 @@ def get_refs(a_pickle):
u
.
load
()
u
.
load
()
u
.
load
()
u
.
load
()
# Now we have a list of referencs. Need to convert to list of
# Now we have a list of referenc
e
s. Need to convert to list of
# oids and class info:
# oids and class info:
result
=
[]
result
=
[]
...
...
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