Windows doesn't like Unicode strings in os.environ in Python 2.7.

This commit is contained in:
Itamar Turner-Trauring 2020-07-27 16:19:36 -04:00
parent 94d489ff46
commit cbbe260a4e

View File

@ -239,7 +239,7 @@ def _synchronously_find_addresses_via_config():
def _query(path, args, regex):
if not os.path.isfile(path):
return []
env = {'LANG': 'en_US.UTF-8'}
env = {native_str('LANG'): native_str('en_US.UTF-8')}
TRIES = 5
for trial in range(TRIES):
try: