Skip to content

Commit d72c895

Browse files
committed
fix all tests under Python 3
1 parent 3685ceb commit d72c895

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

chem/miller.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
""" Calculation of Miller indices """
2+
from functools import reduce
23

34
import numpy as np
45
import math

chem/tests.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@
99
chemical_equations_equal,
1010
)
1111

12-
import miller
12+
from . import miller
1313

1414
local_debug = None
1515

1616

1717
def log(s, output_type=None):
1818
if local_debug:
19-
print s
19+
print(s)
2020
if output_type == 'html':
2121
f.write(s + '\n<br>\n')
2222

0 commit comments

Comments
 (0)