Skip to content

Commit

Permalink
Use math.gcd
Browse files Browse the repository at this point in the history
fractions.gcd is deprecated from Python 3.5 and it's been removed in Python 3.9, so using fractions.gcd
the activity fails to start with "ImportError: cannot import name 'gcd' from 'fractions'" on F33 SoaS as it uses Python 3.9

Signed-off-by: Ibiam Chihurumnaya <ibiamchihurumnaya@gmail.com>
  • Loading branch information
chimosky authored and quozl committed Jan 21, 2021
1 parent 6851b82 commit 46e22a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion historietaactivity.py
Expand Up @@ -8,7 +8,7 @@
import logging
from gettext import gettext as _
import time
from fractions import gcd
from math import gcd

import gi
gi.require_version('Gst', '1.0')
Expand Down

0 comments on commit 46e22a4

Please sign in to comment.