From a4e6bf3091fb2433bc5558e69c0f3e535754435f Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Dec 29 2015 15:30:55 +0000 Subject: (py3) Encode subprocess input as bytes. In python2, the subprocess interface doesn't care if you pass it bytes or unicode, but in python3 you have to be explicit. This should fix `fpaste -i -o` usage under python3 (F23). Signed-off-by: Ralph Bean Signed-off-by: Ankur Sinha (Ankur Sinha Gmail) --- diff --git a/fpaste b/fpaste index d3e1d05..7a2eefe 100755 --- a/fpaste +++ b/fpaste @@ -859,7 +859,7 @@ Examples: stdout=subprocess.PIPE, stderr=subprocess.PIPE, stdin=subprocess.PIPE) - (out, err) = p.communicate(input=url) + (out, err) = p.communicate(input=url.encode('utf-8')) if p.returncode != 0: if options.debug: print(err, file=sys.stderr)