From 021309dd0b61089e9bbb251cce919e0f123f27f8 Mon Sep 17 00:00:00 2001 From: Zach Riggle Date: Mon, 21 Dec 2015 09:39:13 -0800 Subject: [PATCH] pwndbg.file.get() should return an empty bytes object, not an empty str object, when it fails. Fixes #18. --- pwndbg/file.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pwndbg/file.py b/pwndbg/file.py index 2a739172d..311f558b9 100644 --- a/pwndbg/file.py +++ b/pwndbg/file.py @@ -38,4 +38,4 @@ def get(path): with open(local_path,'rb') as f: return f.read() except: - return '' + return b''