From: Tim Peters <tim.peters@gmail.com> Date: Sun, 24 Nov 2002 02:35:35 +0000 (+0000) Subject: Whitespace normalization. X-Git-Tag: v2.3c1~3264 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=77c06fbf942bf4c532d0f8d6f254882a9e5957ec;p=python Whitespace normalization. --- diff --git a/Lib/bsddb/dbobj.py b/Lib/bsddb/dbobj.py index 9c3e90f633..10e036a27b 100644 --- a/Lib/bsddb/dbobj.py +++ b/Lib/bsddb/dbobj.py @@ -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) - diff --git a/Lib/bsddb/dbshelve.py b/Lib/bsddb/dbshelve.py index ab6363649a..6ac54b741a 100644 --- a/Lib/bsddb/dbshelve.py +++ b/Lib/bsddb/dbshelve.py @@ -286,6 +286,3 @@ class DBShelfCursor: #--------------------------------------------------------------------------- - - - diff --git a/Lib/bsddb/dbtables.py b/Lib/bsddb/dbtables.py index 2c65198b99..4841c283a5 100644 --- a/Lib/bsddb/dbtables.py +++ b/Lib/bsddb/dbtables.py @@ -627,4 +627,3 @@ class bsdTableDB : if txn : txn.abort() raise TableDBError, dberror[1] - diff --git a/Lib/bsddb/dbutils.py b/Lib/bsddb/dbutils.py index d21069fa16..1a8bc7891a 100644 --- a/Lib/bsddb/dbutils.py +++ b/Lib/bsddb/dbutils.py @@ -72,4 +72,3 @@ def DeadlockWrap(function, *_args, **_kwargs): #------------------------------------------------------------------------ - diff --git a/Lib/bsddb/test/test_associate.py b/Lib/bsddb/test/test_associate.py index f59d88166f..305a794104 100644 --- a/Lib/bsddb/test/test_associate.py +++ b/Lib/bsddb/test/test_associate.py @@ -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 diff --git a/Lib/bsddb/test/test_basics.py b/Lib/bsddb/test/test_basics.py index 257b3846fe..f2ccb8a49e 100644 --- a/Lib/bsddb/test/test_basics.py +++ b/Lib/bsddb/test/test_basics.py @@ -811,4 +811,3 @@ def suite(): if __name__ == '__main__': unittest.main( defaultTest='suite' ) - diff --git a/Lib/bsddb/test/test_compat.py b/Lib/bsddb/test/test_compat.py index 5d7a219189..2514d0243e 100644 --- a/Lib/bsddb/test/test_compat.py +++ b/Lib/bsddb/test/test_compat.py @@ -165,5 +165,3 @@ def suite(): if __name__ == '__main__': unittest.main( defaultTest='suite' ) - - diff --git a/Lib/bsddb/test/test_dbobj.py b/Lib/bsddb/test/test_dbobj.py index ee700e3d6f..c1b82feb6c 100644 --- a/Lib/bsddb/test/test_dbobj.py +++ b/Lib/bsddb/test/test_dbobj.py @@ -69,4 +69,3 @@ def suite(): if __name__ == '__main__': unittest.main( defaultTest='suite' ) - diff --git a/Lib/bsddb/test/test_dbshelve.py b/Lib/bsddb/test/test_dbshelve.py index 580c75fc0a..770588240b 100644 --- a/Lib/bsddb/test/test_dbshelve.py +++ b/Lib/bsddb/test/test_dbshelve.py @@ -301,5 +301,3 @@ def suite(): if __name__ == '__main__': unittest.main( defaultTest='suite' ) - - diff --git a/Lib/bsddb/test/test_dbtables.py b/Lib/bsddb/test/test_dbtables.py index a3465850ca..bfa75862e7 100644 --- a/Lib/bsddb/test/test_dbtables.py +++ b/Lib/bsddb/test/test_dbtables.py @@ -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']) diff --git a/Lib/bsddb/test/test_env_close.py b/Lib/bsddb/test/test_env_close.py index 01b3516b45..f6b0a0d629 100644 --- a/Lib/bsddb/test/test_env_close.py +++ b/Lib/bsddb/test/test_env_close.py @@ -82,5 +82,3 @@ def suite(): if __name__ == '__main__': unittest.main( defaultTest='suite' ) - - diff --git a/Lib/bsddb/test/test_get_none.py b/Lib/bsddb/test/test_get_none.py index 0e1fa93c74..487bdf09a9 100644 --- a/Lib/bsddb/test/test_get_none.py +++ b/Lib/bsddb/test/test_get_none.py @@ -94,5 +94,3 @@ def suite(): if __name__ == '__main__': unittest.main( defaultTest='suite' ) - - diff --git a/Lib/bsddb/test/test_join.py b/Lib/bsddb/test/test_join.py index bb5c316e82..00ccd363fb 100644 --- a/Lib/bsddb/test/test_join.py +++ b/Lib/bsddb/test/test_join.py @@ -10,5 +10,3 @@ import unittest from bsddb import db from test.test_support import verbose - - diff --git a/Lib/bsddb/test/test_recno.py b/Lib/bsddb/test/test_recno.py index eaeeb8afef..40d9fcab68 100644 --- a/Lib/bsddb/test/test_recno.py +++ b/Lib/bsddb/test/test_recno.py @@ -254,5 +254,3 @@ def suite(): if __name__ == '__main__': unittest.main( defaultTest='suite' ) - - diff --git a/Lib/httplib.py b/Lib/httplib.py index d367ea7ac2..e98fa4637d 100644 --- a/Lib/httplib.py +++ b/Lib/httplib.py @@ -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: diff --git a/Lib/imaplib.py b/Lib/imaplib.py index da456d617f..47fbafa5cf 100644 --- a/Lib/imaplib.py +++ b/Lib/imaplib.py @@ -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`) diff --git a/Lib/nntplib.py b/Lib/nntplib.py index ea831cf525..16e7550f79 100644 --- a/Lib/nntplib.py +++ b/Lib/nntplib.py @@ -590,4 +590,3 @@ if __name__ == '__main__': print "%7s %s" % item resp = s.quit() print resp - diff --git a/Lib/test/test_bsddb3.py b/Lib/test/test_bsddb3.py index a42238de1b..0b3c665464 100644 --- a/Lib/test/test_bsddb3.py +++ b/Lib/test/test_bsddb3.py @@ -57,4 +57,3 @@ if __name__ == '__main__': print '-=' * 38 unittest.main( defaultTest='suite' ) - diff --git a/Lib/test/test_format.py b/Lib/test/test_format.py index da4d85ab3c..f7918747d0 100644 --- a/Lib/test/test_format.py +++ b/Lib/test/test_format.py @@ -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: diff --git a/Lib/test/test_normalization.py b/Lib/test/test_normalization.py index a263fc5464..39c48a416e 100644 --- a/Lib/test/test_normalization.py +++ b/Lib/test/test_normalization.py @@ -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 -