Searched refs:get_locale_encoding (Results 1 – 3 of 3) sorted by relevance
/external/python/pyfakefs/pyfakefs/ |
D | helpers.py | 134 def get_locale_encoding(): function 156 return path.decode(get_locale_encoding()) 164 return bytes(path, get_locale_encoding()) 207 return string.encode(get_locale_encoding())
|
D | fake_file.py | 55 get_locale_encoding, 203 self.encoding or get_locale_encoding(), 276 self.encoding or get_locale_encoding(), 790 self._encoding = encoding or get_locale_encoding()
|
/external/python/pyfakefs/pyfakefs/tests/ |
D | fake_open_test.py | 27 from pyfakefs.helpers import is_root, IS_PYPY, get_locale_encoding 95 with self.open(file_path, "w", encoding=get_locale_encoding()) as f: 101 with self.open(file_path, encoding=get_locale_encoding()) as f: 120 with self.open(file_path, "w", encoding=get_locale_encoding()) as f: 124 self.assertEqual(str_contents, contents.decode(get_locale_encoding()))
|