diff options
| author | Peter LaFosse <peter@vector35.com> | 2021-03-17 10:36:04 -0400 |
|---|---|---|
| committer | Peter LaFosse <peter@vector35.com> | 2021-03-19 11:15:11 -0400 |
| commit | cf2a9769397faab4d2158b9ad756d0362441ecf7 (patch) | |
| tree | 81311396d1e211a2daa34dc84497eba67d84e13d /python | |
| parent | 17fff9c72f0f84c69ce31c8522eb67f9b68a128f (diff) | |
Minor spelling fixes
Diffstat (limited to 'python')
| -rw-r--r-- | python/binaryview.py | 4 | ||||
| -rw-r--r-- | python/function.py | 8 | ||||
| -rw-r--r-- | python/pluginmanager.py | 6 |
3 files changed, 9 insertions, 9 deletions
diff --git a/python/binaryview.py b/python/binaryview.py index b1bbdb6e..3a777156 100644 --- a/python/binaryview.py +++ b/python/binaryview.py @@ -3542,7 +3542,7 @@ class BinaryView(object): """ ``get_data_refs_for_type`` returns a list of virtual addresses of data which references the type ``name``. Note, the returned addresses are the actual start of the queried type. For example, suppose there is a DataVariable - at 0x1000 that has type A, and type A contians type B at offset 0x10. Then `get_data_refs_for_type('B')` will + at 0x1000 that has type A, and type A contains type B at offset 0x10. Then `get_data_refs_for_type('B')` will return 0x1010 for it. :param QualifiedName name: name of type to query for references @@ -3569,7 +3569,7 @@ class BinaryView(object): """ ``get_data_refs_for_type_field`` returns a list of virtual addresses of data which references the type ``name``. Note, the returned addresses are the actual start of the queried type field. For example, suppose there is a - DataVariable at 0x1000 that has type A, and type A contians type B at offset 0x10. + DataVariable at 0x1000 that has type A, and type A contains type B at offset 0x10. Then `get_data_refs_for_type_field('B', 0x8)` will return 0x1018 for it. :param QualifiedName name: name of type to query for references diff --git a/python/function.py b/python/function.py index 783df87e..8220683e 100644 --- a/python/function.py +++ b/python/function.py @@ -1061,10 +1061,10 @@ class ILReferenceSource(object): self._address = addr self._il_type = il_type self._expr_id = expr_id - + def get_il_name(self, il_type): if il_type == FunctionGraphType.NormalFunctionGraph: - return 'disasmbly' + return 'disassembly' if il_type == FunctionGraphType.LowLevelILFunctionGraph: return 'llil' if il_type == FunctionGraphType.LiftedILFunctionGraph: @@ -1083,7 +1083,7 @@ class ILReferenceSource(object): return 'hlil' if il_type == FunctionGraphType.HighLevelILSSAFormFunctionGraph: return 'hlil_ssa' - + def __repr__(self): if self._arch: return "<ref: %s@%#x, %s@%d>" %\ @@ -3837,7 +3837,7 @@ class InstructionTextToken(object): """ ``class InstructionTextToken`` is used to tell the core about the various components in the disassembly views. - The below table is provided for ducmentation purposes but the complete list of TokenTypes is available at: :class:`!enums.InstructionTextTokenType`. Note that types marked as `Not emitted by architectures` are not intended to be used by Architectures during lifting. Rather, they are added by the core during analysis or display. UI plugins, however, may make use of them as appropriate. + The below table is provided for documentation purposes but the complete list of TokenTypes is available at: :class:`!enums.InstructionTextTokenType`. Note that types marked as `Not emitted by architectures` are not intended to be used by Architectures during lifting. Rather, they are added by the core during analysis or display. UI plugins, however, may make use of them as appropriate. Uses of tokens include plugins that parse the output of an architecture (though parsing IL is recommended), or additionally, applying color schemes appropriately. diff --git a/python/pluginmanager.py b/python/pluginmanager.py index 1f38a386..109876e3 100644 --- a/python/pluginmanager.py +++ b/python/pluginmanager.py @@ -323,10 +323,10 @@ class RepositoryManager(object): @property def plugins(self): """List of all RepoPlugins in each repository""" - plgs = {} + plugin_list = {} for repo in self.repositories: - plgs[repo.path] = repo.plugins - return plgs + plugin_list[repo.path] = repo.plugins + return plugin_list @property def default_repository(self): |
