Whitespace normalization.

This commit is contained in:
Tim Peters 2001-01-14 23:47:14 +00:00
parent 88869f9787
commit 07e99cb774
18 changed files with 1933 additions and 1936 deletions

View file

@ -116,4 +116,3 @@ except ImportError:
getpass = win_getpass getpass = win_getpass
else: else:
getpass = unix_getpass getpass = unix_getpass

View file

@ -51,7 +51,7 @@ from errno import ENOENT
_default_localedir = os.path.join(sys.prefix, 'share', 'locale') _default_localedir = os.path.join(sys.prefix, 'share', 'locale')
def _expand_lang(locale): def _expand_lang(locale):
from locale import normalize from locale import normalize
locale = normalize(locale) locale = normalize(locale)
@ -94,7 +94,7 @@ def _expand_lang(locale):
return ret return ret
class NullTranslations: class NullTranslations:
def __init__(self, fp=None): def __init__(self, fp=None):
self._info = {} self._info = {}
@ -192,7 +192,7 @@ class GNUTranslations(NullTranslations):
return unicode(tmsg, self._charset) return unicode(tmsg, self._charset)
# Locate a .mo file using the gettext strategy # Locate a .mo file using the gettext strategy
def find(domain, localedir=None, languages=None): def find(domain, localedir=None, languages=None):
# Get some reasonable defaults for arguments that were not supplied # Get some reasonable defaults for arguments that were not supplied
@ -223,7 +223,7 @@ def find(domain, localedir=None, languages=None):
return None return None
# a mapping between absolute .mo file path and Translation object # a mapping between absolute .mo file path and Translation object
_translations = {} _translations = {}
@ -243,12 +243,12 @@ def translation(domain, localedir=None, languages=None, class_=None):
return t return t
def install(domain, localedir=None, unicode=0): def install(domain, localedir=None, unicode=0):
translation(domain, localedir).install(unicode) translation(domain, localedir).install(unicode)
# a mapping b/w domains and locale directories # a mapping b/w domains and locale directories
_localedirs = {} _localedirs = {}
# current global domain, `messages' used for compatibility w/ GNU gettext # current global domain, `messages' used for compatibility w/ GNU gettext

View file

@ -1,4 +1,3 @@
"""IMAP4 client. """IMAP4 client.
Based on RFC 2060. Based on RFC 2060.

View file

@ -460,4 +460,3 @@ if __name__ == '__main__' or (len(sys.argv) > 0 and sys.argv[0] == 'mimify'):
if decode_base64: if decode_base64:
encode_args = encode_args + (decode_base64,) encode_args = encode_args + (decode_base64,)
apply(encode, encode_args) apply(encode, encode_args)