misc: update from fractions.gcd to math.gcd (#36331)

This commit is contained in:
Frédéric Péters 2019-09-21 22:37:04 +02:00
parent 4f1761a1a2
commit 63bff03a87
1 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
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):