Rename error_to_str to error_to_compat_str

This commit is contained in:
Sergey M․ 2015-12-20 07:00:39 +06:00
parent d890b4cc0a
commit 9b9c5355e4
7 changed files with 17 additions and 17 deletions

View file

@ -1810,7 +1810,7 @@ def args_to_str(args):
return ' '.join(shlex_quote(a) for a in args)
def error_to_str(err):
def error_to_compat_str(err):
err_str = str(err)
# On python 2 error byte string must be decoded with proper
# encoding rather than ascii