comparison mercurial/encoding.py @ 12770:614f0d8724ab

check-code: find trailing whitespace
author Martin Geisler <mg@lazybytes.net>
date Wed, 20 Oct 2010 10:13:04 +0200
parents c327bfa5e831
children eddc20306ab6
comparison
equal deleted inserted replaced
12769:daa8dc6e1f66 12770:614f0d8724ab
13 On darwin, getpreferredencoding ignores the locale environment and 13 On darwin, getpreferredencoding ignores the locale environment and
14 always returns mac-roman. http://bugs.python.org/issue6202 fixes this 14 always returns mac-roman. http://bugs.python.org/issue6202 fixes this
15 for Python 2.7 and up. This is the same corrected code for earlier 15 for Python 2.7 and up. This is the same corrected code for earlier
16 Python versions. 16 Python versions.
17 17
18 However, we can't use a version check for this method, as some distributions 18 However, we can't use a version check for this method, as some distributions
19 patch Python to fix this. Instead, we use it as a 'fixer' for the mac-roman 19 patch Python to fix this. Instead, we use it as a 'fixer' for the mac-roman
20 encoding, as it is unlikely that this encoding is the actually expected. 20 encoding, as it is unlikely that this encoding is the actually expected.
21 ''' 21 '''
22 try: 22 try:
23 locale.CODESET 23 locale.CODESET