Skip to content

Commit 673900c

Browse files
Rename losetup variable
1 parent 9ea60fb commit 673900c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/inputstreamhelper.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def __init__(self, protocol, drm=None):
2929
self._download_path = None
3030
self._bin_path = None
3131
self._mounted = False
32-
self._losetup = False
32+
self._loop_dev = False
3333

3434
self.protocol = protocol
3535
self.drm = drm
@@ -140,7 +140,7 @@ def _losetup(self):
140140
"""Setup Chrome OS loop device."""
141141
cmd = ['losetup', config.LOOP_DEV, self._bin_path, '-o', self._parse_chromeos_offset()]
142142
subprocess.check_output(cmd)
143-
self._losetup = True
143+
self._loop_dev = True
144144
return True
145145

146146
def _mnt_loop_dev(self):
@@ -433,7 +433,7 @@ def _cleanup(self):
433433
if self._losetup:
434434
cmd = ['losetup', '-d', config.LOOP_DEV]
435435
subprocess.check_call(cmd)
436-
self._losetup = False
436+
self._loop_dev = False
437437

438438
shutil.rmtree(self._temp_path())
439439
busy_dialog.close()

0 commit comments

Comments
 (0)