From fb63a76e6dcde2df627e34941cf310eb1fbf4244 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 --- willie/modules/youtube.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/willie/modules/youtube.py b/willie/modules/youtube.py index ec3679bfe4..afdb4dc3d1 100644 --- a/willie/modules/youtube.py +++ b/willie/modules/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: