]> granicus.if.org Git - python/commitdiff
Whitespace normalization.
authorTim Peters <tim.peters@gmail.com>
Fri, 3 Nov 2006 02:32:46 +0000 (02:32 +0000)
committerTim Peters <tim.peters@gmail.com>
Fri, 3 Nov 2006 02:32:46 +0000 (02:32 +0000)
12 files changed:
Lib/smtplib.py
Lib/test/test_MimeWriter.py
Lib/test/test___future__.py
Lib/test/test_bufio.py
Lib/test/test_codecs.py
Lib/test/test_grammar.py
Lib/test/test_mailbox.py
Lib/test/test_math.py
Lib/test/test_mmap.py
Lib/test/test_poll.py
Lib/test/test_scope.py
Lib/test/test_structmembers.py

index 7a677aa79393f40fc351a2132793088189839c0d..a7305ce92eaa61b56aa0119e5db82aa82682bd4d 100755 (executable)
@@ -729,7 +729,7 @@ class SMTP_SSL(SMTP):
     support). If host is not specified, '' (the local host) is used. If port is
     omitted, the standard SMTP-over-SSL port (465) is used. keyfile and certfile
     are also optional - they can contain a PEM formatted private key and
-    certificate chain file for the SSL connection.   
+    certificate chain file for the SSL connection.
     """
     def __init__(self, host = '', port = 0, local_hostname = None,
                  keyfile = None, certfile = None):
index b7d37b25af0eb153d2f5270360b2b1e14531e308..feca1631f2b34f0a870c77f22c94ad647f3ba2ab 100644 (file)
@@ -192,7 +192,7 @@ __kp__.__setup__(500)
 '''
 
 class MimewriterTest(unittest.TestCase):
-    
+
     def test(self):
         buf = StringIO.StringIO()
 
index b639d0990f50225ef82c698fb31c39e5c205edd4..50a2c74ad08f7f383a8559bbfedfdb498761fdfd 100644 (file)
@@ -50,7 +50,7 @@ class FutureTest(unittest.TestCase):
                 check(mandatory, "mandatory")
                 a(optional < mandatory,
                        "optional not less than mandatory, and mandatory not None")
-        
+
             a(hasattr(value, "compiler_flag"),
                    "feature is missing a .compiler_flag attr")
             a(isinstance(getattr(value, "compiler_flag"), int),
index a3196ca2689bec2377825403aacb8c737d3f1890..14a926a570444899ea19e1fc54a7c1ea49aa7b98 100644 (file)
@@ -36,7 +36,7 @@ class BufferSizeTest(unittest.TestCase):
                 os.unlink(test_support.TESTFN)
             except:
                 pass
-    
+
     def drive_one(self, pattern):
         for length in lengths:
             # Repeat string 'pattern' as often as needed to reach total length
index 21cd1b927cd03dc94309eca8fb3e71c7ccc78010..5b35a645386b165b1d6f8d2db035fc235934f350 100644 (file)
@@ -911,7 +911,7 @@ class StreamReaderTest(unittest.TestCase):
         self.assertEquals(f.readlines(), [u'\ud55c\n', u'\uae00'])
 
 class EncodedFileTest(unittest.TestCase):
-    
+
     def test_basic(self):
         f = StringIO.StringIO('\xed\x95\x9c\n\xea\xb8\x80')
         ef = codecs.EncodedFile(f, 'utf-16-le', 'utf-8')
@@ -1172,7 +1172,7 @@ class BasicUnicodeTest(unittest.TestCase):
                         decoder = codecs.getincrementaldecoder(encoding)("ignore")
                         decodedresult = u"".join(decoder.decode(c) for c in encodedresult)
                         self.assertEqual(decodedresult, s, "%r != %r (encoding=%r)" % (decodedresult, s, encoding))
-    
+
                         encodedresult = "".join(cencoder.encode(c) for c in s)
                         cdecoder = _testcapi.codec_incrementaldecoder(encoding, "ignore")
                         decodedresult = u"".join(cdecoder.decode(c) for c in encodedresult)
index 26c93927983d086448dafb02f8a6db90586882a5..69e198015841bccdea248ca9e2dc224e6a84f523 100644 (file)
@@ -123,10 +123,10 @@ class GrammarTests(unittest.TestCase):
 
     # single_input: NEWLINE | simple_stmt | compound_stmt NEWLINE
     # XXX can't test in a script -- this rule is only used when interactive
-    
+
     # file_input: (NEWLINE | stmt)* ENDMARKER
     # Being tested as this very moment this very module
-    
+
     # expr_input: testlist NEWLINE
     # XXX Hard to test -- used only in calls to input()
 
@@ -329,7 +329,7 @@ class GrammarTests(unittest.TestCase):
         # which is not available in unittest.
         save_stdout = sys.stdout
         sys.stdout = StringIO.StringIO()
-        
+
         print 1, 2, 3
         print 1, 2, 3,
         print
@@ -563,7 +563,7 @@ hello world
         elif 0: pass
         elif 0: pass
         else: pass
-    
+
     def testWhile(self):
         # 'while' test ':' suite ['else' ':' suite]
         while 0: pass
@@ -696,7 +696,7 @@ hello world
     def testSelectors(self):
         ### trailer: '(' [testlist] ')' | '[' subscript ']' | '.' NAME
         ### subscript: expr | [expr] ':' [expr]
-        
+
         import sys, time
         c = sys.path[0]
         x = time.time()
index 40cf1929056dde2bf2daac0a76ccc5537294c6c1..ab164d091353689c38a5090790538144608999e3 100644 (file)
@@ -754,15 +754,15 @@ class _TestMboxMMDF(TestMailbox):
         key1 = self._box.add(msg)
         self._box.flush()
         self._box.close()
-        
+
         self._box = self._factory(self._path)
         self._box.lock()
         key2 = self._box.add(msg)
         self._box.flush()
         self.assert_(self._box._locked)
         self._box.close()
-        
-        
+
+
 
 class TestMbox(_TestMboxMMDF):
 
index 1458c82f8c3b86454a7b1e66891086cd5eeaa99d..a45fc3429a6df63d3fc6a25b005cd493361b1aa7 100644 (file)
@@ -152,7 +152,7 @@ class MathTests(unittest.TestCase):
 
         testmodf('modf(1.5)', math.modf(1.5), (0.5, 1.0))
         testmodf('modf(-1.5)', math.modf(-1.5), (-0.5, -1.0))
-    
+
     def testPow(self):
         self.assertRaises(TypeError, math.pow)
         self.ftest('pow(0,1)', math.pow(0,1), 0)
index 7253ff818ad5b9828ba8ae891ef126bcd5558055..0b5382307619efc0d288624677f5cc94ec2d7141 100644 (file)
@@ -218,7 +218,7 @@ class MmapTests(unittest.TestCase):
         # Ensuring copy-on-write maps cannot be resized
         self.assertRaises(TypeError, m.resize, 2*mapsize)
         del m, f
-    
+
         # Ensuring invalid access parameter raises exception
         f = open(TESTFN, "r+b")
         self.assertRaises(ValueError, mmap.mmap, f.fileno(), mapsize, access=4)
index 944b9918965e2bdee22138e0bbd24bb6cb7ad005..60cd3f4b05be498b4eff5262ec7a171727138d69 100644 (file)
@@ -21,7 +21,7 @@ class PollTests(unittest.TestCase):
     def test_poll1(self):
         # Basic functional test of poll object
         # Create a bunch of pipe and test that poll works with them.
-        
+
         p = select.poll()
 
         NUM_PIPES = 12
index c703a06c0be4759ddc2c64a881038be9eb49dd42..a53b30fa675642cd7cda545d9edc77fa33c0c30f 100644 (file)
@@ -8,7 +8,7 @@ warnings.filterwarnings("ignore", r"import \*", SyntaxWarning, "<string>")
 class ScopeTests(unittest.TestCase):
 
     def testSimpleNesting(self):
-        
+
         def make_adder(x):
             def adder(y):
                 return x + y
index 3a08dc441c791c27e27c001a0787220a9086eaf2..93dd2acaf40664b24c2d9a50efa5c6b934111630 100644 (file)
@@ -43,11 +43,11 @@ class TestWarnings(test.test_warnings.TestModule):
     def has_warned(self):
         self.assertEqual(test.test_warnings.msg.category,
                          exceptions.RuntimeWarning.__name__)
-        
+
     def test_byte_max(self):
         ts.T_BYTE=CHAR_MAX+1
         self.has_warned()
-        
+
     def test_byte_min(self):
         ts.T_BYTE=CHAR_MIN-1
         self.has_warned()
@@ -68,7 +68,7 @@ class TestWarnings(test.test_warnings.TestModule):
         ts.T_USHORT=USHRT_MAX+1
         self.has_warned()
 
-        
+
 
 def test_main(verbose=None):
     test_support.run_unittest(