diff --git a/.travis.yml b/.travis.yml index 1fda4d0a1..8bfaf47d5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -21,4 +21,5 @@ before_script: - isort --check-only --diff pwndbg script: - nosetests ./tests/ - - python -m py_compile ida_script.py + - python2.7 -m py_compile ida_script.py $(git ls-files 'pwndbg/*.py') + - python3 -m py_compile $(git ls-files 'pwndbg/*.py') diff --git a/pwndbg/commands/elf.py b/pwndbg/commands/elf.py index 13ca663bb..2efd1e081 100755 --- a/pwndbg/commands/elf.py +++ b/pwndbg/commands/elf.py @@ -27,11 +27,11 @@ def elfheader(): continue size = section['sh_size'] - sections.append((start, start + size, section.name.decode('ascii'))) + sections.append((start, start + size, section.name)) sections.sort() for start, end, name in sections: - print('%#x - %#x %s' % (start, end, name)) + print('%#x - %#x ' % (start, end), name) @pwndbg.commands.Command def gotplt(): diff --git a/pwndbg/commands/packing.py b/pwndbg/commands/packing.py deleted file mode 100644 index ff463d4e4..000000000 --- a/pwndbg/commands/packing.py +++ /dev/null @@ -1,8 +0,0 @@ -from __future__ import print_function - -import struct - -import gdb - - -def pack(data, size=None):