Whitespace normalization.
diff --git a/Lib/test/string_tests.py b/Lib/test/string_tests.py
index 836836b1..c8feb19 100644
--- a/Lib/test/string_tests.py
+++ b/Lib/test/string_tests.py
@@ -314,4 +314,3 @@
vereq('asdf' in 'asdf', True)
vereq('asdf' in 'asd', False)
vereq('asdf' in '', False)
-
diff --git a/Lib/test/test_format.py b/Lib/test/test_format.py
index 3013a08..be120fb 100644
--- a/Lib/test/test_format.py
+++ b/Lib/test/test_format.py
@@ -221,4 +221,3 @@
test_exc('%d', '1', TypeError, "int argument required")
test_exc('%g', '1', TypeError, "float argument required")
-
diff --git a/Lib/test/test_slice.py b/Lib/test/test_slice.py
index a837abe..7b3ee06 100644
--- a/Lib/test/test_slice.py
+++ b/Lib/test/test_slice.py
@@ -11,4 +11,3 @@
vereq(slice(-100, 100 ).indices(10), slice(None).indices(10))
vereq(slice(100, -100, -1).indices(10), slice(None, None, -1).indices(10))
vereq(slice(-100L, 100L, 2L).indices(10), (0, 10, 2))
-
diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py
index 98d9e78..69113fd 100644
--- a/Lib/test/test_socket.py
+++ b/Lib/test/test_socket.py
@@ -571,7 +571,7 @@
class UnbufferedFileObjectClassTestCase(FileObjectClassTestCase):
"""Repeat the tests from FileObjectClassTestCase with bufsize==0.
-
+
In this case (and in this case only), it should be possible to
create a file object, read a line from it, create another file
object, read another line from it, without loss of data in the
diff --git a/Lib/test/test_strptime.py b/Lib/test/test_strptime.py
index 2e8e35e..bd84021 100644
--- a/Lib/test/test_strptime.py
+++ b/Lib/test/test_strptime.py
@@ -20,7 +20,7 @@
self.LT_ins = _strptime.LocaleTime()
def compare_against_time(self, testing, directive, tuple_position, error_msg):
- """Helper method that tests testing against directive based on the
+ """Helper method that tests testing against directive based on the
tuple_position of time_tuple. Uses error_msg as error message.
"""
@@ -28,17 +28,17 @@
comparison = testing[self.time_tuple[tuple_position]]
self.failUnless(strftime_output in testing, "%s: not found in tuple" % error_msg)
self.failUnless(comparison == strftime_output, "%s: position within tuple incorrect; %s != %s" % (error_msg, comparison, strftime_output))
-
+
def test_weekday(self):
- """Make sure that full and abbreviated weekday names are correct in
+ """Make sure that full and abbreviated weekday names are correct in
both string and position with tuple.
-
+
"""
self.compare_against_time(self.LT_ins.f_weekday, '%A', 6, "Testing of full weekday name failed")
self.compare_against_time(self.LT_ins.a_weekday, '%a', 6, "Testing of abbreviated weekday name failed")
def test_month(self):
- """Test full and abbreviated month names; both string and position
+ """Test full and abbreviated month names; both string and position
within the tuple.
"""
@@ -125,9 +125,9 @@
self.failUnless(found and found.group('A') == self.locale_time.f_weekday[6], "re object for '%A' failed")
compiled = self.time_re.compile(r"%a %b")
found = compiled.match("%s %s" % (self.locale_time.a_weekday[4], self.locale_time.a_month[4]))
- self.failUnless(found,
+ self.failUnless(found,
"Match failed with '%s' regex and '%s' string" % (compiled.pattern, "%s %s" % (self.locale_time.a_weekday[4], self.locale_time.a_month[4])))
- self.failUnless(found.group('a') == self.locale_time.a_weekday[4] and found.group('b') == self.locale_time.a_month[4],
+ self.failUnless(found.group('a') == self.locale_time.a_weekday[4] and found.group('b') == self.locale_time.a_month[4],
"re object couldn't find the abbreviated weekday month in '%s' using '%s'; group 'a' = '%s', group 'b' = %s'" % (found.string, found.re.pattern, found.group('a'), found.group('b')))
for directive in ('a','A','b','B','c','d','H','I','j','m','M','p','S','U','w','W','x','X','y','Y','Z','%'):
compiled = self.time_re.compile("%%%s"% directive)
@@ -199,9 +199,9 @@
def test_timezone(self):
"""Test timezone directives.
-
+
When gmtime() is used with %Z, entire result of strftime() is empty.
-
+
"""
time_tuple = time.localtime()
strf_output = time.strftime("%Z") #UTC does not have a timezone
@@ -246,7 +246,7 @@
strf_output = time.strftime("%Y-%m-%d", self.time_tuple)
strp_output = _strptime.strptime(strf_output, "%Y-%m-%d")
self.failUnless(strp_output[7] == self.time_tuple[7], "strptime did not trigger julianday(); %s != %s" % (strp_output[7], self.time_tuple[7]))
-
+
def test_gregorian_result(self):
"""Test gregorian."""
result = _strptime.gregorian(self.time_tuple[7], self.time_tuple[0])
diff --git a/Lib/test/test_whichdb.py b/Lib/test/test_whichdb.py
index 8f63862..21f1588 100644
--- a/Lib/test/test_whichdb.py
+++ b/Lib/test/test_whichdb.py
@@ -41,7 +41,7 @@
mod = __import__(name)
except ImportError:
continue
-
+
def test_whichdb_name(self,name=name,mod=mod):
"""Check whether whichdb correctly guesses module name
for databases opened with module mod.
@@ -60,4 +60,3 @@
if __name__ == "__main__":
test_main()
-