]> granicus.if.org Git - python/commitdiff
Whitespace normalization.
authorTim Peters <tim.peters@gmail.com>
Sun, 24 Nov 2002 02:35:35 +0000 (02:35 +0000)
committerTim Peters <tim.peters@gmail.com>
Sun, 24 Nov 2002 02:35:35 +0000 (02:35 +0000)
20 files changed:
Lib/bsddb/dbobj.py
Lib/bsddb/dbshelve.py
Lib/bsddb/dbtables.py
Lib/bsddb/dbutils.py
Lib/bsddb/test/test_associate.py
Lib/bsddb/test/test_basics.py
Lib/bsddb/test/test_compat.py
Lib/bsddb/test/test_dbobj.py
Lib/bsddb/test/test_dbshelve.py
Lib/bsddb/test/test_dbtables.py
Lib/bsddb/test/test_env_close.py
Lib/bsddb/test/test_get_none.py
Lib/bsddb/test/test_join.py
Lib/bsddb/test/test_recno.py
Lib/httplib.py
Lib/imaplib.py
Lib/nntplib.py
Lib/test/test_bsddb3.py
Lib/test/test_format.py
Lib/test/test_normalization.py

index 9c3e90f633de6b106760de406cab389d44a58ffb..10e036a27b40bd19b62aa0079522bb18fa4fe538 100644 (file)
@@ -175,4 +175,3 @@ class DB:
         return apply(self._cobj.verify, args, kwargs)
     def set_get_returns_none(self, *args, **kwargs):
         return apply(self._cobj.set_get_returns_none, args, kwargs)
-
index ab6363649abd2f0a2f58a7f417d734921cf04709..6ac54b741a207e23a1fe1c6f52d3fe320bf809e9 100644 (file)
@@ -286,6 +286,3 @@ class DBShelfCursor:
 
 
 #---------------------------------------------------------------------------
-
-
-
index 2c65198b9912de18becece0d2e9e560515bc8f73..4841c283a5591734aa3998c0c6b2528f1e80ec2b 100644 (file)
@@ -627,4 +627,3 @@ class bsdTableDB :
             if txn :
                 txn.abort()
             raise TableDBError, dberror[1]
-
index d21069fa160f91d2954aa94ccfd650cdf9742266..1a8bc7891ae8ab14e7f7e821853862172bd6cc93 100644 (file)
@@ -72,4 +72,3 @@ def DeadlockWrap(function, *_args, **_kwargs):
 
 
 #------------------------------------------------------------------------
-
index f59d88166f16b42e8f240e5f074587579463d725..305a794104add6825452b802f8cae4cf2d932a67 100644 (file)
@@ -248,10 +248,10 @@ class ShelveAssociateTestCase(AssociateTestCase):
 
 
 class ShelveAssociateHashTestCase(ShelveAssociateTestCase):
-      dbtype = db.DB_HASH
+    dbtype = db.DB_HASH
 
 class ShelveAssociateBTreeTestCase(ShelveAssociateTestCase):
-      dbtype = db.DB_BTREE
+    dbtype = db.DB_BTREE
 
 class ShelveAssociateRecnoTestCase(ShelveAssociateTestCase):
     dbtype = db.DB_RECNO
@@ -287,10 +287,10 @@ class ThreadedAssociateTestCase(AssociateTestCase):
 
 
 class ThreadedAssociateHashTestCase(ShelveAssociateTestCase):
-      dbtype = db.DB_HASH
+    dbtype = db.DB_HASH
 
 class ThreadedAssociateBTreeTestCase(ShelveAssociateTestCase):
-      dbtype = db.DB_BTREE
+    dbtype = db.DB_BTREE
 
 class ThreadedAssociateRecnoTestCase(ShelveAssociateTestCase):
     dbtype = db.DB_RECNO
index 257b3846fea6a84e5e06593fea139de7b1cd2ee5..f2ccb8a49e5149c5e37bad49d41450d0cd09a195 100644 (file)
@@ -811,4 +811,3 @@ def suite():
 
 if __name__ == '__main__':
     unittest.main( defaultTest='suite' )
-
index 5d7a21918933f0bdd1ac9c8f2853d9fa5858ec98..2514d0243e7394722b757026d37efa23bb425f53 100644 (file)
@@ -165,5 +165,3 @@ def suite():
 
 if __name__ == '__main__':
     unittest.main( defaultTest='suite' )
-
-
index ee700e3d6f3afe16b502f42553236b8050111ddc..c1b82feb6cee9a85fc7c1563bcff57a7d17ec696 100644 (file)
@@ -69,4 +69,3 @@ def suite():
 
 if __name__ == '__main__':
     unittest.main( defaultTest='suite' )
-
index 580c75fc0a675c46839b0494a610e44d3c220db1..770588240bffe863bcdbdba1293fa1773b2fe52b 100644 (file)
@@ -301,5 +301,3 @@ def suite():
 
 if __name__ == '__main__':
     unittest.main( defaultTest='suite' )
-
-
index a3465850ca67646f6ea4f882890de9bc3ee2424b..bfa75862e7f37e22bac35094bc72b5fd020a3858 100644 (file)
@@ -233,7 +233,7 @@ class TableDBTestCase(unittest.TestCase):
         assert len(values) == 1, values
         assert values[0]['d'] == "is for dog", values
         assert values[0]['a'] == "is for aardvark", values
-    
+
     def test_Delete(self):
         tabname = "test_Delete"
         self.tdb.CreateTable(tabname, ['x', 'y', 'z'])
index 01b3516b454d159c0d38ac77aed6b72a9f9efe4e..f6b0a0d62953c2a67b7663940bbe91f1ac3e2324 100644 (file)
@@ -82,5 +82,3 @@ def suite():
 
 if __name__ == '__main__':
     unittest.main( defaultTest='suite' )
-
-
index 0e1fa93c74efe9afcdfbffb4ee00d92e237b1eea..487bdf09a9a7ae27b28940263e9428515213110c 100644 (file)
@@ -94,5 +94,3 @@ def suite():
 
 if __name__ == '__main__':
     unittest.main( defaultTest='suite' )
-
-
index bb5c316e82495cd218221bc3e2738f03217178e0..00ccd363fb8eb2cec34fda8d7c7673f570c5d490 100644 (file)
@@ -10,5 +10,3 @@ import unittest
 from bsddb import db
 
 from test.test_support import verbose
-
-
index eaeeb8afeff915f25eb674d7fca0c2208faa34ca..40d9fcab68676604a815d18802401e9d498297a8 100644 (file)
@@ -254,5 +254,3 @@ def suite():
 
 if __name__ == '__main__':
     unittest.main( defaultTest='suite' )
-
-
index d367ea7ac29f091ff51f1f82e824e8f70eca614e..e98fa4637d096a6c29efb0d9e04996cdbdfb839a 100644 (file)
@@ -352,7 +352,7 @@ class HTTPResponse:
         # For older HTTP, Keep-Alive indiciates persistent connection.
         if self.msg.getheader('keep-alive'):
             return False
-        
+
         # Proxy-Connection is a netscape hack.
         pconn = self.msg.getheader('proxy-connection')
         if pconn and pconn.lower().find("keep-alive") >= 0:
index da456d617f04a16bff0a2875119906f5eb2a29d4..47fbafa5cfc155dc37ead655b0152725d8150908 100644 (file)
@@ -330,7 +330,7 @@ class IMAP4:
         """
         mech = mechanism.upper()
         cap = 'AUTH=%s' % mech
-        #if not cap in self.capabilities:      # Let the server decide!
+        #if not cap in self.capabilities:       # Let the server decide!
         #    raise self.error("Server doesn't allow %s authentication." % mech)
         self.literal = _Authenticator(authobject).process
         typ, dat = self._simple_command('AUTHENTICATE', mech)
@@ -1401,7 +1401,7 @@ if __name__ == '__main__':
         else:
             M = IMAP4(host)
         if M.state == 'AUTH':
-            test_seq1 = test_seq1[1:]  # Login not needed
+            test_seq1 = test_seq1[1:]   # Login not needed
         M._mesg('PROTOCOL_VERSION = %s' % M.PROTOCOL_VERSION)
         M._mesg('CAPABILITIES = %s' % `M.capabilities`)
 
index ea831cf525251ed29c1dcb59da0f7829b79922c4..16e7550f7963be7735aef5f6f907cf13ee5ed7c0 100644 (file)
@@ -590,4 +590,3 @@ if __name__ == '__main__':
         print "%7s %s" % item
     resp = s.quit()
     print resp
-
index a42238de1bee708acc98b2b4cf87c1c656d41d41..0b3c6654644bdd7386f10100df72ba0a09dff52f 100644 (file)
@@ -57,4 +57,3 @@ if __name__ == '__main__':
     print '-=' * 38
 
     unittest.main( defaultTest='suite' )
-
index da4d85ab3c5bd865bb8d553bd74488451911aeb9..f7918747d007e9572e30fc838d524eb0b19a2e0f 100644 (file)
@@ -221,13 +221,13 @@ if have_unicode:
 
 test_exc('%d', '1', TypeError, "int argument required")
 test_exc('%g', '1', TypeError, "float argument required")
-test_exc('no format', '1', TypeError, 
+test_exc('no format', '1', TypeError,
          "not all arguments converted during string formatting")
-test_exc('no format', u'1', TypeError, 
+test_exc('no format', u'1', TypeError,
          "not all arguments converted during string formatting")
-test_exc(u'no format', '1', TypeError, 
+test_exc(u'no format', '1', TypeError,
          "not all arguments converted during string formatting")
-test_exc(u'no format', u'1', TypeError, 
+test_exc(u'no format', u'1', TypeError,
          "not all arguments converted during string formatting")
 
 if sys.maxint == 2**32-1:
index a263fc5464fe7099e9ccced39ad8cf787ec1e003..39c48a416e6514d268f07a0f81eb88e10e56dea4 100644 (file)
@@ -46,7 +46,7 @@ for line in data:
 
     if verbose:
         print line
-    
+
     # Perform tests
     verify(c2 ==  NFC(c1) ==  NFC(c2) ==  NFC(c3), line)
     verify(c4 ==  NFC(c4) ==  NFC(c5), line)
@@ -65,4 +65,3 @@ for c in range(sys.maxunicode+1):
     if X in part1_data:
         continue
     assert X == NFC(X) == NFD(X) == NFKC(X) == NFKD(X), c
-