
Traceback (most recent call last):


 "/myproject/.tox/py36-ubuntu_16_04_64/lib/python3.6/site-packages/fabric/operations.py", line 590, in get

result = ftp.get(remote_path, local_path, use_sudo, local_is_path, os.path.basename(remote_path), temp_dir)


 "/myproject/.tox/py36-ubuntu_16_04_64/lib/python3.6/site-packages/fabric/sftp.py", line 180, in get

getter(remote_path, local_path)


 "/myproject/.tox/py36-ubuntu_16_04_64/lib/python3.6/site-packages/paramiko/sftp_client.py", line 782, in getfo

reader=fr, writer=fl, file_size=file_size, callback=callback


 "/myproject/.tox/py36-ubuntu_16_04_64/lib/python3.6/site-packages/paramiko/sftp_client.py", line 679, in _transfer_with_callback

writer.write(data)

TypeError: string argument expected, got 'bytes'

Traceback (most recent call last):


 "/usr/lib64/python3.6/runpy.py", line 193, in _run_module_as_main

"__main__", mod_spec)


 "/usr/lib64/python3.6/runpy.py", line 85, in _run_code

exec(code, run_globals)


 "/home/giovanism/Repos/garbage/pys/tsudo/tsudo/__main__.py", line 4, in <module>

tsudo.main(sys.argv[1:])


 "/home/giovanism/Repos/garbage/pys/tsudo/tsudo/tsudo.py", line 15, in main

sudo.interact(output_filter=insults_filter)


 "/home/giovanism/.local/lib/python3.6/site-packages/pexpect/pty_spawn.py", line 766, in interact

self.__interact_copy(escape_character, input_filter, output_filter)


 "/home/giovanism/.local/lib/python3.6/site-packages/pexpect/pty_spawn.py", line 810, in __interact_copy

data = output_filter(data)


 "/home/giovanism/Repos/garbage/pys/tsudo/tsudo/tsudo.py", line 21, in insults_filter

if sudo_out == '\r\n' or attempts_up_pat.match(sudo_out):
TypeError: cannot use a string pattern on a bytes-like object
