Initial support for non-ascii locales

This commit is contained in:
Ivan Kravets
2017-11-02 23:14:32 +02:00
parent f85202d64c
commit b670ab4888
9 changed files with 31 additions and 31 deletions

View File

@@ -21,7 +21,6 @@ import re
import stat
import subprocess
import sys
from contextlib import contextmanager
from functools import wraps
from glob import glob
from os.path import (abspath, basename, dirname, expanduser, isdir, isfile,
@@ -180,12 +179,8 @@ def singleton(cls):
return get_instance
@contextmanager
def capture_stdout(output):
stdout = sys.stdout
sys.stdout = output
yield
sys.stdout = stdout
def path_to_unicode(path):
return path.decode(sys.getfilesystemencoding()).encode("utf-8")
def load_json(file_path):