diff --git a/pandora_client/utils.py b/pandora_client/utils.py index 9a2c0ff..a9448e0 100644 --- a/pandora_client/utils.py +++ b/pandora_client/utils.py @@ -16,7 +16,7 @@ import ox class AspectRatio(fractions.Fraction): def __new__(cls, numerator, denominator=None): if not denominator: - ratio = map(int, numerator.split(':')) + ratio = list(map(int, numerator.split(':'))) if len(ratio) == 1: ratio.append(1) numerator = ratio[0] @@ -68,7 +68,7 @@ def run_command(cmd, timeout=25): def video_frame_positions(duration): pos = duration / 2 # return [pos/4, pos/2, pos/2+pos/4, pos, pos+pos/2, pos+pos/2+pos/4] - return map(int, [pos/2, pos, pos+pos/2]) + return list(map(int, [pos/2, pos, pos+pos/2])) def cleanup_tree(root): again = False