Skip to content

Commit e5d5eaa

Browse files
oyamadmmcky
andauthored
FIX: Fix ImportError for gcd (#573)
* FIX: Fix ImportError for `gcd` * add testing agains python=3.9 * Revert "add testing agains python=3.9" This reverts commit 46e6f3c. Co-authored-by: mmcky <[email protected]>
1 parent e5ccec1 commit e5d5eaa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

quantecon/graph_tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import numpy as np
66
from scipy import sparse
77
from scipy.sparse import csgraph
8-
from fractions import gcd
8+
from math import gcd
99
from numba import jit
1010

1111
from .util import check_random_state

quantecon/markov/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
8181
"""
8282
import numbers
83-
from fractions import gcd
83+
from math import gcd
8484
import numpy as np
8585
from scipy import sparse
8686
from numba import jit

0 commit comments

Comments
 (0)