Skip to content

Commit 3e514d1

Browse files
committed
upgrade py3.10 syntax
1 parent 93ac630 commit 3e514d1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

heat/bmi_heat.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def initialize(self, filename=None):
3939
if filename is None:
4040
self._model = Heat()
4141
elif isinstance(filename, str):
42-
with open(filename, "r") as file_obj:
42+
with open(filename) as file_obj:
4343
self._model = Heat.from_file_like(file_obj.read())
4444
else:
4545
self._model = Heat.from_file_like(filename)

heat/heat.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def solve_2d(temp, spacing, out=None, alpha=1.0, time_step=1.0):
5353
return np.add(temp, out, out=out)
5454

5555

56-
class Heat(object):
56+
class Heat:
5757

5858
"""Solve the Heat equation on a grid.
5959

0 commit comments

Comments
 (0)