diff options
| author | blasty <peter@haxx.in> | 2026-08-21 12:14:46 +0200 |
|---|---|---|
| committer | blasty <peter@haxx.in> | 2026-08-21 12:15:15 +0200 |
| commit | 02d02417800184fb76cd0245cdaa94c437aa4081 (patch) | |
| tree | 7589e6e2e8426bb7370fc56eee52d1559c9d7e57 /idatui/formats.py | |
| parent | adopt ruff: pinned formatter + import sorting, opt-in pre-commit hook (diff) | |
| download | ida-tui-02d02417800184fb76cd0245cdaa94c437aa4081.tar.gz ida-tui-02d02417800184fb76cd0245cdaa94c437aa4081.tar.xz ida-tui-02d02417800184fb76cd0245cdaa94c437aa4081.zip | |
reformat: ruff format + import sort, mechanically (see ruff.toml)
No behavior. Listed in .git-blame-ignore-revs (next commit).
Diffstat (limited to 'idatui/formats.py')
| -rw-r--r-- | idatui/formats.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/idatui/formats.py b/idatui/formats.py index f09bb99..d3d2abd 100644 --- a/idatui/formats.py +++ b/idatui/formats.py @@ -60,7 +60,7 @@ def sniff(path: str) -> str | None: if not head: return None for magic, off, name in _MAGIC: - if head[off:off + len(magic)] == magic: + if head[off : off + len(magic)] == magic: return name # Only treat a text prefix as a format if the whole head is printable — # a raw blob starting with 0x3a (':') is far more likely than Intel HEX. |
