summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2002-02-16 07:34:19 (GMT)
committerTim Peters <tim.peters@gmail.com>2002-02-16 07:34:19 (GMT)
commite4418609f79b94b91bda2621b5e6f067fb6a31d5 (patch)
treef274a8311f3398d31f2019808bea1fb332bb8690 /Lib
parent20882dd1742310c8cf6858354ecb150810adb95c (diff)
downloadcpython-e4418609f79b94b91bda2621b5e6f067fb6a31d5.zip
cpython-e4418609f79b94b91bda2621b5e6f067fb6a31d5.tar.gz
cpython-e4418609f79b94b91bda2621b5e6f067fb6a31d5.tar.bz2
Whitespace normalization.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/compiler/pycodegen.py2
-rw-r--r--Lib/dumbdbm.py2
-rw-r--r--Lib/ftplib.py14
-rw-r--r--Lib/test/test_StringIO.py2
4 files changed, 10 insertions, 10 deletions
diff --git a/Lib/compiler/pycodegen.py b/Lib/compiler/pycodegen.py
index 4194d27..c107a08 100644
--- a/Lib/compiler/pycodegen.py
+++ b/Lib/compiler/pycodegen.py
@@ -1187,7 +1187,7 @@ class InteractiveCodeGenerator(NestedScopeMixin, CodeGenerator):
def get_module(self):
return self
-
+
def visitDiscard(self, node):
# XXX Discard means it's an expression. Perhaps this is a bad
# name.
diff --git a/Lib/dumbdbm.py b/Lib/dumbdbm.py
index 920a464..3fb6e1d 100644
--- a/Lib/dumbdbm.py
+++ b/Lib/dumbdbm.py
@@ -150,7 +150,7 @@ class _Database:
def __del__(self):
if self._index is not None:
self._commit()
-
+
def open(file, flag=None, mode=0666):
diff --git a/Lib/ftplib.py b/Lib/ftplib.py
index 436f13d..6234f7f 100644
--- a/Lib/ftplib.py
+++ b/Lib/ftplib.py
@@ -351,13 +351,13 @@ class FTP:
if not passwd: passwd = ''
if not acct: acct = ''
if user == 'anonymous' and passwd in ('', '-'):
- # If there is no anonymous ftp password specified
- # then we'll just use anonymous@
- # We don't send any other thing because:
- # - We want to remain anonymous
- # - We want to stop SPAM
- # - We don't want to let ftp sites to discriminate by the user,
- # host or country.
+ # If there is no anonymous ftp password specified
+ # then we'll just use anonymous@
+ # We don't send any other thing because:
+ # - We want to remain anonymous
+ # - We want to stop SPAM
+ # - We don't want to let ftp sites to discriminate by the user,
+ # host or country.
passwd = passwd + 'anonymous@'
resp = self.sendcmd('USER ' + user)
if resp[0] == '3': resp = self.sendcmd('PASS ' + passwd)
diff --git a/Lib/test/test_StringIO.py b/Lib/test/test_StringIO.py
index bf3640c..a340e3b 100644
--- a/Lib/test/test_StringIO.py
+++ b/Lib/test/test_StringIO.py
@@ -76,7 +76,7 @@ class TestStringIO(TestGenericStringIO):
# The StringIO module also supports concatenating Unicode
# snippets to larger Unicode strings. This is tested by this
# method. Note that cStringIO does not support this extension.
-
+
f = self.MODULE.StringIO()
f.write(self._line[:6])
f.seek(3)