Skip to content

Commit 1469d3d

Browse files
authored
Merge pull request #1814 from passagemath/hadamard_matrix_remove_eval
src/sage/combinat/matrices/hadamard_matrix.py: Replace use of `eval`
2 parents 22ca791 + ce23dc1 commit 1469d3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sage/combinat/matrices/hadamard_matrix.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1962,7 +1962,7 @@ def hadamard_matrix_www(url_file, comments=False):
19621962
[ 1 -1 -1 1 1 1 -1 -1 -1 1 1 -1 -1 -1 1 1]
19631963
[ 1 -1 -1 1 -1 -1 1 1 -1 1 1 -1 1 1 -1 -1]
19641964
"""
1965-
n = eval(url_file.split(".")[1])
1965+
n = int(url_file.split(".")[1])
19661966
rws = []
19671967
url = "http://neilsloane.com/hadamard/" + url_file
19681968
with urlopen(url) as f:

0 commit comments

Comments
 (0)