Permalink
Browse files

Ensure subprocess output is decoded

  • Loading branch information...
1 parent a184e3c commit bd7127e08e10d6779c73066b42fc647108773c5b @kislyuk committed Jan 29, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 argcomplete/__init__.py
View
@@ -214,7 +214,7 @@ def __call__(self, parser, namespace, values, option_string=None):
print >>debug_stream, "Completer not available, falling back"
try:
# TODO: what happens if completions contain newlines? How do I make compgen use IFS?
- completions += subprocess.check_output(['bash', '-c', "compgen -A file -- '{p}'".format(p=cword_prefix)]).splitlines()
+ completions += subprocess.check_output(['bash', '-c', "compgen -A file -- '{p}'".format(p=cword_prefix)]).decode().splitlines()
except subprocess.CalledProcessError:
pass

0 comments on commit bd7127e

Please sign in to comment.