mirror of https://github.com/pwndbg/pwndbg.git
* lib/memory.py: use 'if collection' instead of 'if len(collection) > 0'
* commands/__init__.py: use 'not line' instead of 'len(line)==0'
* hexdump.py: use 'not data' instead of 'len(data)==0'
* commands/nearpc.py: use `if p` instead of `if len("%s" % p)>0`
I double checked that this works fine:
```
pwndbg> set nearpc-branch-marker-contiguous
Set contiguous branch marker line for nearpc command to ''.
pwndbg> pi str(pwndbg.commands.nearpc.nearpc_branch_marker_contiguous)
''
pwndbg> pi bool(pwndbg.commands.nearpc.nearpc_branch_marker_contiguous)
False
```
pull/1499/head
parent
db1fbdf251
commit
dbaba63a74
Loading…
Reference in new issue