Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.bio.video
Commits
29636955
Commit
29636955
authored
Mar 02, 2018
by
Olegs NIKISINS
Browse files
Fixed dict.has_key issue for Python 3
parent
187a651e
Pipeline
#17324
passed with stage
in 16 minutes and 53 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
bob/bio/video/preprocessor/Wrapper.py
View file @
29636955
...
...
@@ -125,7 +125,7 @@ class Wrapper(bob.bio.base.preprocessor.Preprocessor):
for
index
,
frame
,
_
in
frames
:
# if annotations are given, we take them
if
annotations
is
not
None
:
annots
=
annotations
[
index
]
if
annotations
.
has_key
(
index
)
else
None
if
annotations
is
not
None
:
annots
=
annotations
[
index
]
if
index
in
annotations
.
keys
(
)
else
None
# preprocess image (by default: detect a face)
preprocessed
=
self
.
preprocessor
(
frame
,
annots
)
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment