Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
configdb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
ai
configdb
Commits
f066d4d9
Commit
f066d4d9
authored
12 years ago
by
ale
Browse files
Options
Downloads
Patches
Plain Diff
prevent a UnicodeDecodeError in find_all - fixes issue #12
parent
53e4d958
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
configdb/db/interface/leveldb_interface.py
+2
-2
2 additions, 2 deletions
configdb/db/interface/leveldb_interface.py
with
2 additions
and
2 deletions
configdb/db/interface/leveldb_interface.py
+
2
−
2
View file @
f066d4d9
...
@@ -69,8 +69,8 @@ class LevelDbInterface(base.DbInterface):
...
@@ -69,8 +69,8 @@ class LevelDbInterface(base.DbInterface):
return
None
return
None
def
_find_all
(
self
,
entity_name
):
def
_find_all
(
self
,
entity_name
):
cursor
=
self
.
db
.
RangeIter
(
'
%s:
'
%
entity_name
,
cursor
=
self
.
db
.
RangeIter
(
u
'
%s:
'
%
entity_name
,
'
%s:
\xff
'
%
entity_name
)
u
'
%s:
\xff
'
%
entity_name
)
for
key
,
serialized_data
in
cursor
:
for
key
,
serialized_data
in
cursor
:
yield
self
.
_deserialize
(
serialized_data
)
yield
self
.
_deserialize
(
serialized_data
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment