From c6d547d964cf22512038fd8ce5b6129c7b747ca6 Mon Sep 17 00:00:00 2001 From: Yasha Mostofi Date: Sat, 17 Feb 2018 23:19:22 -0600 Subject: [PATCH] Change to byte string --- pyjacker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyjacker.py b/pyjacker.py index 3a11f75..befef0d 100644 --- a/pyjacker.py +++ b/pyjacker.py @@ -233,7 +233,7 @@ def launch(command, hooks_file): compile_cmd = ['gcc', PYJACKER_SOURCE, '-o', PYJACKER_LIB, '-shared', '-fPIC', '-Wall', '-O2'] try: output = Popen(['python-config', '--cflags', '--libs'], stdout=PIPE).communicate()[0] - compile_cmd.extend([arg.strip() for arg in output.replace('\n', ' ').split()]) + compile_cmd.extend([arg.strip() for arg in output.replace(b'\n', b' ').split()]) except OSError as e: print('[-] Error getting compile flags: %s' % e) sys.exit(-1)