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
c9e7d3e7
Commit
c9e7d3e7
authored
Jun 02, 2005
by
Tim Peters
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
referencesf(): Use %r instead of %s format in the error message, else
the pickle shown is full of unprintable characters.
parent
a1b891b5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
NEWS.txt
NEWS.txt
+7
-0
src/ZODB/serialize.py
src/ZODB/serialize.py
+1
-1
No files found.
NEWS.txt
View file @
c9e7d3e7
...
...
@@ -39,6 +39,13 @@ _Persistence.c
has its own copy, and the C code hadn't been compiled in ZODB since before
ZODB 3.3.
Error reporting
---------------
- In the unlikely event that ``referencesf()`` reports an unpickling error
(for example, a corrupt database can cause this), the message it
produces no longer contains unprintable characters.
What's new in ZODB3 3.4b1?
==========================
...
...
src/ZODB/serialize.py
View file @
c9e7d3e7
...
...
@@ -514,7 +514,7 @@ def referencesf(p, rootl=None):
u
.
persistent_load
=
[]
u
.
noload
()
if
len
(
p
)
>
f
.
tell
():
raise
ValueError
,
'Error unpickling
, %s
'
%
p
raise
ValueError
,
'Error unpickling
%r
'
%
p
# References may be:
...
...
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