From 7182df5fa0d22ea61cc1b41d6213bd3af0f0f87b Mon Sep 17 00:00:00 2001 From: Daniel Kahn Gillmor Date: Thu, 18 Dec 2014 17:45:55 -0500 Subject: [PATCH] use integer division for python 3 compatibility --- youtube.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/youtube.py b/youtube.py index ec3679bfe4..afdb4dc3d1 100644 --- a/youtube.py +++ b/youtube.py @@ -84,8 +84,8 @@ def ytget(bot, trigger, uri): if duration < 1: vid_info['length'] = 'LIVE' else: - hours = duration / (60 * 60) - minutes = duration / 60 - (hours * 60) + hours = duration // (60 * 60) + minutes = duration // 60 - (hours * 60) seconds = duration % 60 vid_info['length'] = '' if hours: