Commit 29636955 authored by Olegs NIKISINS's avatar Olegs NIKISINS

Fixed dict.has_key issue for Python 3

parent 187a651e
Pipeline #17324 passed with stage
in 16 minutes and 53 seconds
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment