Skip to content
Myr

Make locale optional (Fixes #880)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Armin Ronacher · committed by Armin Ronacher · parent d97c93f · Browse files · 1 file+5 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+5 added−2 removed

  • other:+5 added−2 removed

1 file+5 added−2 removed

modified:click/_unicodefun.py+5 added-2 removed
60 unmodified lines
6162 extra = ''63 if os.name == 'posix':64 import subprocess65 try:65 rv = subprocess.Popen(['locale', '-a'], stdout=subprocess.PIPE,66 stderr=subprocess.PIPE).communicate()[0]66 rv = subprocess.Popen(['locale', '-a'], stdout=subprocess.PIPE,67 stderr=subprocess.PIPE).communicate()[0]68 except OSError:69 rv = b''70 good_locales = set()71 has_c_utf8 = False7273 # Make sure we're operating on text here.
50 unmodified lines