Whitespace normalization.

This commit is contained in:
Tim Peters 2002-02-16 07:34:19 +00:00
parent 20882dd174
commit e4418609f7
4 changed files with 10 additions and 10 deletions

View File

@ -1187,7 +1187,7 @@ class InteractiveCodeGenerator(NestedScopeMixin, CodeGenerator):
def get_module(self): def get_module(self):
return self return self
def visitDiscard(self, node): def visitDiscard(self, node):
# XXX Discard means it's an expression. Perhaps this is a bad # XXX Discard means it's an expression. Perhaps this is a bad
# name. # name.

View File

@ -150,7 +150,7 @@ class _Database:
def __del__(self): def __del__(self):
if self._index is not None: if self._index is not None:
self._commit() self._commit()
def open(file, flag=None, mode=0666): def open(file, flag=None, mode=0666):

View File

@ -351,13 +351,13 @@ class FTP:
if not passwd: passwd = '' if not passwd: passwd = ''
if not acct: acct = '' if not acct: acct = ''
if user == 'anonymous' and passwd in ('', '-'): if user == 'anonymous' and passwd in ('', '-'):
# If there is no anonymous ftp password specified # If there is no anonymous ftp password specified
# then we'll just use anonymous@ # then we'll just use anonymous@
# We don't send any other thing because: # We don't send any other thing because:
# - We want to remain anonymous # - We want to remain anonymous
# - We want to stop SPAM # - We want to stop SPAM
# - We don't want to let ftp sites to discriminate by the user, # - We don't want to let ftp sites to discriminate by the user,
# host or country. # host or country.
passwd = passwd + 'anonymous@' passwd = passwd + 'anonymous@'
resp = self.sendcmd('USER ' + user) resp = self.sendcmd('USER ' + user)
if resp[0] == '3': resp = self.sendcmd('PASS ' + passwd) if resp[0] == '3': resp = self.sendcmd('PASS ' + passwd)

View File

@ -76,7 +76,7 @@ class TestStringIO(TestGenericStringIO):
# The StringIO module also supports concatenating Unicode # The StringIO module also supports concatenating Unicode
# snippets to larger Unicode strings. This is tested by this # snippets to larger Unicode strings. This is tested by this
# method. Note that cStringIO does not support this extension. # method. Note that cStringIO does not support this extension.
f = self.MODULE.StringIO() f = self.MODULE.StringIO()
f.write(self._line[:6]) f.write(self._line[:6])
f.seek(3) f.seek(3)