Skip to content

Commit 2c49aeb

Browse files
committed
Make consistent variable naming.
1 parent 99820ae commit 2c49aeb

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/py/kaleido/kaleido.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ class Kaleido(choreo.Browser):
5656

5757
async def close(self):
5858
"""Close the browser."""
59-
if self.tmp_dir:
60-
self.tmp_dir.clean()
59+
if self._tmp_dir:
60+
self._tmp_dir.clean()
6161
_logger.info("Cancelling tasks.")
6262
for task in self._main_tasks:
6363
if not task.done():
@@ -137,8 +137,8 @@ def __init__(self, *args, **kwargs): # noqa: D417 no args/kwargs in description
137137
elif page and hasattr(page, "is_file") and page.is_file():
138138
self._index = page.as_uri()
139139
else:
140-
self.tmp_dir = TmpDirectory(sneak=self.is_isolated())
141-
index = self.tmp_dir.path / "index.html"
140+
self._tmp_dir = TmpDirectory(sneak=self.is_isolated())
141+
index = self._tmp_dir.path / "index.html"
142142
self._index = index.as_uri()
143143
if not page:
144144
page = PageGenerator(plotly=self._plotlyjs, mathjax=self._mathjax)

0 commit comments

Comments
 (0)