From 63bff03a87b4dcfc991d964162dc08f8d64fe031 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Sat, 21 Sep 2019 22:37:04 +0200 Subject: [PATCH] misc: update from fractions.gcd to math.gcd (#36331) --- chrono/agendas/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chrono/agendas/models.py b/chrono/agendas/models.py index e340723a..c5c8ae17 100644 --- a/chrono/agendas/models.py +++ b/chrono/agendas/models.py @@ -16,7 +16,7 @@ # along with this program. If not, see . import datetime -import fractions +import math import requests import vobject @@ -111,7 +111,7 @@ class Agenda(models.Model): raise ValueError() gcd = durations[0] for duration in durations[1:]: - gcd = fractions.gcd(duration, gcd) + gcd = math.gcd(duration, gcd) return gcd def export_json(self):