summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorJordan Wiens <jordan@psifertex.com>2020-06-17 15:23:44 -0400
committerJordan Wiens <jordan@psifertex.com>2020-06-17 15:23:44 -0400
commitf9121c18673a58cb9b1820656f82e05b1ac4b7b8 (patch)
tree2572b6f529cc308f98e4c983409a61dd5c92e71f /python
parent4eae3900e12e9acc30ed682a0f058abfb3758fa1 (diff)
many spelling fixes
Diffstat (limited to 'python')
-rw-r--r--python/__init__.py2
-rw-r--r--python/architecture.py2
-rw-r--r--python/binaryview.py2
-rw-r--r--python/filemetadata.py4
-rw-r--r--python/function.py6
-rw-r--r--python/interaction.py2
-rw-r--r--python/log.py2
-rw-r--r--python/lowlevelil.py2
-rw-r--r--python/scriptingprovider.py2
-rw-r--r--python/types.py2
10 files changed, 13 insertions, 13 deletions
diff --git a/python/__init__.py b/python/__init__.py
index 498b3e4f..a54bc2e8 100644
--- a/python/__init__.py
+++ b/python/__init__.py
@@ -114,7 +114,7 @@ class PluginManagerLoadPluginCallback(object):
raise ValueError("Plugin API name is not " + _plugin_api_name)
if not force and core.core_platform not in plugin.install_platforms:
- raise ValueError("Current platform {} ins't in list of valid platforms for this plugin {}".format(
+ raise ValueError("Current platform {} isn't in list of valid platforms for this plugin {}".format(
core.core_platform, plugin.install_platforms))
if not plugin.installed:
plugin.installed = True
diff --git a/python/architecture.py b/python/architecture.py
index 096a33b0..bb1f17db 100644
--- a/python/architecture.py
+++ b/python/architecture.py
@@ -1093,7 +1093,7 @@ class Architecture(with_metaclass(_ArchitectureMetaClass, object)):
ctypes.memmove(buf, data, len(data))
core.BNSetDataBufferContents(result, buf, len(data))
return True
- except ValueError as e: # Overriden `assemble` functions should raise a ValueError if the input was invalid (with a reasonable error message)
+ except ValueError as e: # Overridden `assemble` functions should raise a ValueError if the input was invalid (with a reasonable error message)
log.log_error(traceback.format_exc())
errors[0] = core.BNAllocString(str(e))
return False
diff --git a/python/binaryview.py b/python/binaryview.py
index 44d34ba2..e78bc4aa 100644
--- a/python/binaryview.py
+++ b/python/binaryview.py
@@ -5574,7 +5574,7 @@ class BinaryReader(object):
:return: a two byte integer at offset.
:rtype: int, or None on failure
- :Exmaple:
+ :Example:
>>> br.seek(0x100000000)
>>> hex(br.read16le())
diff --git a/python/filemetadata.py b/python/filemetadata.py
index 76cbfe98..937686b7 100644
--- a/python/filemetadata.py
+++ b/python/filemetadata.py
@@ -280,7 +280,7 @@ class FileMetadata(object):
def undo(self):
"""
- ``undo`` undo the last commited action in the undo database.
+ ``undo`` undo the last committed action in the undo database.
:rtype: None
:Example:
@@ -305,7 +305,7 @@ class FileMetadata(object):
def redo(self):
"""
- ``redo`` redo the last commited action in the undo database.
+ ``redo`` redo the last committed action in the undo database.
:rtype: None
:Example:
diff --git a/python/function.py b/python/function.py
index 1c244ae4..114881cf 100644
--- a/python/function.py
+++ b/python/function.py
@@ -1716,7 +1716,7 @@ class Function(object):
def remove_user_code_ref(self, from_addr, to_addr, from_arch=None):
"""
- ``remove_user_code_ref`` reomves a user-defined cross-reference.
+ ``remove_user_code_ref`` removes a user-defined cross-reference.
If the given address is not contained within this function, or if there is no
such user-defined cross-reference, no action is performed.
@@ -2881,7 +2881,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 addded by the core during analysis or display. UI plugins, however, may make use of them as appropriate.
+ 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.
Uses of tokens include plugins that parse the output of an architecture (though parsing IL is recommended), or additionally, applying color schemes appropriately.
@@ -2913,7 +2913,7 @@ class InstructionTextToken(object):
NameSpaceSeparatorToken **Not emitted by architectures**
NameSpaceToken **Not emitted by architectures**
OpcodeToken **Not emitted by architectures**
- OperandSeparatorToken The comma or delimeter that separates tokens
+ OperandSeparatorToken The comma or delimiter that separates tokens
PossibleAddressToken Integers that are likely addresses
RegisterToken Registers
StringToken **Not emitted by architectures**
diff --git a/python/interaction.py b/python/interaction.py
index 584ce0d5..798c9275 100644
--- a/python/interaction.py
+++ b/python/interaction.py
@@ -1232,7 +1232,7 @@ def get_form_input(fields, title):
- OpenFileNameField - Prompt for file to open
- SaveFileNameField - Prompt for file to save to
- DirectoryNameField - Prompt for directory name
- This API is flexible and works both in the UI via a pop-up dialog and on the command-line. Note that more complicated APIs should consider usin the included pyside2 functionality in the `binaryninjaui` module. Returns true or false depending on whether the user submitted responses or cancelled the dialog.
+ This API is flexible and works both in the UI via a pop-up dialog and on the command-line. Note that more complicated APIs should consider using the included pyside2 functionality in the `binaryninjaui` module. Returns true or false depending on whether the user submitted responses or cancelled the dialog.
:param fields: A list containing these classes, strings or None
:type fields: list(str) or list(None) or list(LabelField) or list(SeparatorField) or list(TextLineField) or list(MultilineTextField) or list(IntegerField) or list(AddressField) or list(ChoiceField) or list(OpenFileNameField) or list(SaveFileNameField) or list(DirectoryNameField)
diff --git a/python/log.py b/python/log.py
index 5afc479e..f88d9fbd 100644
--- a/python/log.py
+++ b/python/log.py
@@ -44,7 +44,7 @@ def log(level, text):
============ ======== =======================================================================
LogLevelName LogLevel Description
============ ======== =======================================================================
- DebugLog 0 Logs debuging information messages to the console.
+ DebugLog 0 Logs debugging information messages to the console.
InfoLog 1 Logs general information messages to the console.
WarningLog 2 Logs message to console with **Warning** icon.
ErrorLog 3 Logs message to console with **Error** icon, focusing the error console.
diff --git a/python/lowlevelil.py b/python/lowlevelil.py
index ff68d912..59521a67 100644
--- a/python/lowlevelil.py
+++ b/python/lowlevelil.py
@@ -1923,7 +1923,7 @@ class LowLevelILFunction(object):
def arith_shift_right(self, size, a, b, flags=None):
"""
- ``arith_shift_right`` shifts arithmatic right expression ``a`` by expression ``b`` potentially setting flags
+ ``arith_shift_right`` shifts arithmetic right expression ``a`` by expression ``b`` potentially setting flags
``flags`` and returning an expression of ``size`` bytes.
:param int size: the size of the result in bytes
diff --git a/python/scriptingprovider.py b/python/scriptingprovider.py
index 8e2ddc32..d8f87ba8 100644
--- a/python/scriptingprovider.py
+++ b/python/scriptingprovider.py
@@ -536,7 +536,7 @@ class PythonScriptingInstance(ScriptingInstance):
def __init__(self, instance):
super(PythonScriptingInstance.InterpreterThread, self).__init__()
self.instance = instance
- # Note: "current_address" and "here" are interactive auto-variables (i.e. can be set by user and programatically)
+ # Note: "current_address" and "here" are interactive auto-variables (i.e. can be set by user and programmatically)
blacklisted_vars = {"current_view", "bv", "current_function", "current_basic_block", "current_selection", "current_llil", "current_mlil", "current_hlil"}
self.locals = BlacklistedDict(blacklisted_vars, {"__name__": "__console__", "__doc__": None, "binaryninja": sys.modules[__name__]})
self.interpreter = code.InteractiveConsole(self.locals)
diff --git a/python/types.py b/python/types.py
index 046a9d58..94e1f42d 100644
--- a/python/types.py
+++ b/python/types.py
@@ -412,7 +412,7 @@ class Type(object):
@property
def signed(self):
- """Wether type is signed (read-only)"""
+ """Whether type is signed (read-only)"""
if self._mutable:
result = core.BNIsTypeBuilderSigned(self._handle)
else: