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
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
Kirill Smelkov
ZEO
Commits
2ff8ff66
Commit
2ff8ff66
authored
Mar 08, 2013
by
Albertas Agejevas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use Pickle protocol 3 on Py3.
parent
7830739a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
src/ZEO/ClientStorage.py
src/ZEO/ClientStorage.py
+5
-2
No files found.
src/ZEO/ClientStorage.py
View file @
2ff8ff66
...
...
@@ -40,7 +40,7 @@ import ZODB.event
import
zope.interface
import
six
from
persistent.TimeStamp
import
TimeStamp
from
ZEO._compat
import
Pickler
,
Unpickler
,
get_ident
from
ZEO._compat
import
Pickler
,
Unpickler
,
get_ident
,
PY3
from
ZEO.auth
import
get_module
from
ZEO.cache
import
ClientCache
from
ZEO.Exceptions
import
ClientStorageError
,
ClientDisconnected
,
AuthError
...
...
@@ -1331,7 +1331,10 @@ class ClientStorage(object):
# setup tempfile to hold zeoVerify results and interim
# invalidation results
self
.
_tfile
=
tempfile
.
TemporaryFile
(
suffix
=
".inv"
)
self
.
_pickler
=
Pickler
(
self
.
_tfile
,
1
)
if
PY3
:
self
.
_pickler
=
Pickler
(
self
.
_tfile
,
3
)
else
:
self
.
_pickler
=
Pickler
(
self
.
_tfile
,
1
)
self
.
_pickler
.
fast
=
1
# Don't use the memo
if
self
.
_connection
.
peer_protocol_version
<
b'Z309'
:
...
...
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