Rename variable
This commit is contained in:
parent
4b495303f9
commit
6f01571462
@ -174,9 +174,9 @@ class HostBlocker:
|
|||||||
if url.scheme() == 'file':
|
if url.scheme() == 'file':
|
||||||
filename = url.toLocalFile()
|
filename = url.toLocalFile()
|
||||||
if os.path.isdir(filename):
|
if os.path.isdir(filename):
|
||||||
for filenames in os.scandir(filename):
|
for entry in os.scandir(filename):
|
||||||
if filenames.is_file():
|
if entry.is_file():
|
||||||
self._import_local(filenames.path)
|
self._import_local(entry.path)
|
||||||
else:
|
else:
|
||||||
self._import_local(filename)
|
self._import_local(filename)
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user