Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neoppod
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
Levin Zimmermann
neoppod
Commits
144a60dc
Commit
144a60dc
authored
Jul 09, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
d4d1704c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
go/zodb/storage/zeo/zeo.go
go/zodb/storage/zeo/zeo.go
+10
-4
No files found.
go/zodb/storage/zeo/zeo.go
View file @
144a60dc
...
@@ -462,7 +462,7 @@ func (zl *zLink) xuint64Pack(v uint64) interface{} {
...
@@ -462,7 +462,7 @@ func (zl *zLink) xuint64Pack(v uint64) interface{} {
panic
(
"bug"
)
panic
(
"bug"
)
case
'Z'
:
case
'Z'
:
// pickle: -> str XXX do we need to emit bytes for py3?
// pickle: -> str XXX do we need to emit bytes for py3?
-> TODO yes, after switch to protocol=3
return
mem
.
String
(
b
[
:
])
return
mem
.
String
(
b
[
:
])
case
'M'
:
case
'M'
:
...
@@ -541,8 +541,14 @@ func (zl *zLink) asString(xs interface{}) (string, bool) {
...
@@ -541,8 +541,14 @@ func (zl *zLink) asString(xs interface{}) (string, bool) {
return
s
,
ok
return
s
,
ok
case
'M'
:
case
'M'
:
// msgpack: bin XXX ZEO/py sends strings as bin
// msgpack: bin(from py2) | str(from py3)
b
,
ok
:=
xs
.
([]
byte
)
switch
s
:=
xs
.
(
type
)
{
return
string
(
b
),
ok
case
[]
byte
:
return
string
(
s
),
true
case
string
:
return
s
,
true
default
:
return
""
,
false
}
}
}
}
}
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