Skip to content
Snippets Groups Projects
Commit ef52fca5 authored by Florent Jaillet's avatar Florent Jaillet
Browse files

Modify fractions.gcd() import in lcm due to deprecation in Python 3.5

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.
parent 646c23dc
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment