Skip to content
  • Florent Jaillet's avatar
    Modify fractions.gcd() import in lcm due to deprecation in Python 3.5 · ef52fca5
    Florent Jaillet authored
    According to the documentation of Python 3.5, the function fractions.gcd()
    is deprecated and should be replaced by math.gcd().
    
    So we modify the import of gcd() in lcm.py to import it from the math
    module when possible, keeping the import from the fractions module if not
    possible in order to keep the compatibility with older versions of Python.
    ef52fca5