not in please

This commit is contained in:
Gustavo Moreira
2021-12-10 13:09:41 +11:00
parent 36ac92c11c
commit 8e7aff4ad8
5 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -87,7 +87,7 @@ class Downloader:
output_filename = 'unknown-kernel.json'
for named_file in named_files:
prefix = '--system-map'
if not 'System' in named_files[named_file]:
if 'System' not in named_files[named_file]:
prefix = '--elf'
output_filename = './' + '-'.join((named_file.split('/')[-1]).split('-')[2:])[:-4] + '.json.xz'
args += [prefix, named_files[named_file]]
+1 -1
View File
@@ -543,7 +543,7 @@ class CommandLine:
self._file = io.open(fd, mode = 'w+b')
CLIFileHandler.__init__(self, filename)
for item in dir(self._file):
if not item.startswith('_') and not item in ['closed', 'close', 'mode', 'name']:
if not item.startswith('_') and item not in ('closed', 'close', 'mode', 'name'):
setattr(self, item, getattr(self._file, item))
def __getattr__(self, item):
+1 -1
View File
@@ -82,7 +82,7 @@ class ResourceAccessor(object):
"""Determines whether a URLs contents should be cached"""
parsed_url = urllib.parse.urlparse(url)
return self._enable_cache and not parsed_url.scheme in self._non_cached_schemes()
return self._enable_cache and parsed_url.scheme not in self._non_cached_schemes()
@staticmethod
def _non_cached_schemes() -> List[str]:
@@ -44,7 +44,7 @@ class Check_creds(interfaces.plugins.PluginInterface):
cred_addr = task.cred.dereference().vol.offset
if not cred_addr in creds:
if cred_addr not in creds:
creds[cred_addr] = []
creds[cred_addr].append(task.pid)
@@ -72,7 +72,7 @@ class List_Files(plugins.PluginInterface):
key = vnode.vol.offset
added = False
if not key in loop_vnodes:
if key not in loop_vnodes:
# We can't do anything with a no-name vnode
v_name = cls._vnode_name(vnode)
if v_name is None:
@@ -108,7 +108,7 @@ class List_Files(plugins.PluginInterface):
added = True
parent = cls._get_parent(context, vnode)
while parent and not parent in loop_vnodes:
while parent and parent not in loop_vnodes:
if not cls._walk_vnode(context, parent, loop_vnodes):
break