summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorJordan Wiens <github@psifertex.com>2025-11-06 16:36:05 -0500
committerJordan Wiens <github@psifertex.com>2025-11-10 23:22:35 -0500
commit36d99ad88aed9889c741f34bddd045405a68369b (patch)
treec26ce3d073c08fb8e43e27942dbd9ea260e83fd6 /python
parentaf815cd2e1ee9124288c9f73ef8f1254252643f3 (diff)
improved indentation and update formatting detection
Diffstat (limited to 'python')
-rw-r--r--python/binaryview.py20
-rw-r--r--python/transform.py10
2 files changed, 15 insertions, 15 deletions
diff --git a/python/binaryview.py b/python/binaryview.py
index aab64590..619d7592 100644
--- a/python/binaryview.py
+++ b/python/binaryview.py
@@ -2614,12 +2614,12 @@ class MemoryMap:
The `source` parameter determines the type:
- - `os.PathLike` or `str`: File path to be loaded into memory as a `DataMemoryRegion`.
- - `bytes` or `bytearray`: Directly loaded into memory as a `DataMemoryRegion`.
- - `databuffer.DataBuffer`: Loaded as a `DataMemoryRegion`.
- - `fileaccessor.FileAccessor`: Remote proxy source.
- - `BinaryView`: (Reserved for future).
- - `None`: Creates an unbacked memory region (must specify `length`).
+ - `os.PathLike` or `str`: File path to be loaded into memory as a `DataMemoryRegion`.
+ - `bytes` or `bytearray`: Directly loaded into memory as a `DataMemoryRegion`.
+ - `databuffer.DataBuffer`: Loaded as a `DataMemoryRegion`.
+ - `fileaccessor.FileAccessor`: Remote proxy source.
+ - `BinaryView`: (Reserved for future).
+ - `None`: Creates an unbacked memory region (must specify `length`).
.. note:: If no flags are specified and the new memory region overlaps with one or more existing regions, the overlapping portions of the new region will inherit the flags of the respective underlying regions.
@@ -5209,10 +5209,10 @@ class BinaryView:
**Thread Restrictions**:
- - **Worker Threads**: This function cannot be called from a worker thread. If called from a worker thread, an error will be
- logged, and the function will return immediately.
- - **UI Threads**: This function cannot be called from a UI thread. If called from a UI thread, an error will be logged, and
- the function will return immediately.
+ - **Worker Threads**: This function cannot be called from a worker thread. If called from a worker thread, an error will be
+ logged, and the function will return immediately.
+ - **UI Threads**: This function cannot be called from a UI thread. If called from a UI thread, an error will be logged, and
+ the function will return immediately.
:rtype: None
"""
diff --git a/python/transform.py b/python/transform.py
index 2b263911..9512b24b 100644
--- a/python/transform.py
+++ b/python/transform.py
@@ -447,11 +447,11 @@ class TransformContext:
Each context can have:
- - Input data (BinaryView)
- - Transform information (name, parameters, results)
- - File selection state (available_files, requested_files)
- - Parent/child relationships for nested containers
- - Extraction status and error messages
+ - Input data (BinaryView)
+ - Transform information (name, parameters, results)
+ - File selection state (available_files, requested_files)
+ - Parent/child relationships for nested containers
+ - Extraction status and error messages
Contexts are typically accessed through a ``TransformSession`` rather than created directly.