Kaydet (Commit) 77c06fbf authored tarafından Tim Peters's avatar Tim Peters

Whitespace normalization.

üst b808c5cf
...@@ -175,4 +175,3 @@ class DB: ...@@ -175,4 +175,3 @@ class DB:
return apply(self._cobj.verify, args, kwargs) return apply(self._cobj.verify, args, kwargs)
def set_get_returns_none(self, *args, **kwargs): def set_get_returns_none(self, *args, **kwargs):
return apply(self._cobj.set_get_returns_none, args, kwargs) return apply(self._cobj.set_get_returns_none, args, kwargs)
...@@ -286,6 +286,3 @@ class DBShelfCursor: ...@@ -286,6 +286,3 @@ class DBShelfCursor:
#--------------------------------------------------------------------------- #---------------------------------------------------------------------------
...@@ -627,4 +627,3 @@ class bsdTableDB : ...@@ -627,4 +627,3 @@ class bsdTableDB :
if txn : if txn :
txn.abort() txn.abort()
raise TableDBError, dberror[1] raise TableDBError, dberror[1]
...@@ -72,4 +72,3 @@ def DeadlockWrap(function, *_args, **_kwargs): ...@@ -72,4 +72,3 @@ def DeadlockWrap(function, *_args, **_kwargs):
#------------------------------------------------------------------------ #------------------------------------------------------------------------
...@@ -248,10 +248,10 @@ class ShelveAssociateTestCase(AssociateTestCase): ...@@ -248,10 +248,10 @@ class ShelveAssociateTestCase(AssociateTestCase):
class ShelveAssociateHashTestCase(ShelveAssociateTestCase): class ShelveAssociateHashTestCase(ShelveAssociateTestCase):
dbtype = db.DB_HASH dbtype = db.DB_HASH
class ShelveAssociateBTreeTestCase(ShelveAssociateTestCase): class ShelveAssociateBTreeTestCase(ShelveAssociateTestCase):
dbtype = db.DB_BTREE dbtype = db.DB_BTREE
class ShelveAssociateRecnoTestCase(ShelveAssociateTestCase): class ShelveAssociateRecnoTestCase(ShelveAssociateTestCase):
dbtype = db.DB_RECNO dbtype = db.DB_RECNO
...@@ -287,10 +287,10 @@ class ThreadedAssociateTestCase(AssociateTestCase): ...@@ -287,10 +287,10 @@ class ThreadedAssociateTestCase(AssociateTestCase):
class ThreadedAssociateHashTestCase(ShelveAssociateTestCase): class ThreadedAssociateHashTestCase(ShelveAssociateTestCase):
dbtype = db.DB_HASH dbtype = db.DB_HASH
class ThreadedAssociateBTreeTestCase(ShelveAssociateTestCase): class ThreadedAssociateBTreeTestCase(ShelveAssociateTestCase):
dbtype = db.DB_BTREE dbtype = db.DB_BTREE
class ThreadedAssociateRecnoTestCase(ShelveAssociateTestCase): class ThreadedAssociateRecnoTestCase(ShelveAssociateTestCase):
dbtype = db.DB_RECNO dbtype = db.DB_RECNO
......
...@@ -811,4 +811,3 @@ def suite(): ...@@ -811,4 +811,3 @@ def suite():
if __name__ == '__main__': if __name__ == '__main__':
unittest.main( defaultTest='suite' ) unittest.main( defaultTest='suite' )
...@@ -165,5 +165,3 @@ def suite(): ...@@ -165,5 +165,3 @@ def suite():
if __name__ == '__main__': if __name__ == '__main__':
unittest.main( defaultTest='suite' ) unittest.main( defaultTest='suite' )
...@@ -69,4 +69,3 @@ def suite(): ...@@ -69,4 +69,3 @@ def suite():
if __name__ == '__main__': if __name__ == '__main__':
unittest.main( defaultTest='suite' ) unittest.main( defaultTest='suite' )
...@@ -301,5 +301,3 @@ def suite(): ...@@ -301,5 +301,3 @@ def suite():
if __name__ == '__main__': if __name__ == '__main__':
unittest.main( defaultTest='suite' ) unittest.main( defaultTest='suite' )
...@@ -233,7 +233,7 @@ class TableDBTestCase(unittest.TestCase): ...@@ -233,7 +233,7 @@ class TableDBTestCase(unittest.TestCase):
assert len(values) == 1, values assert len(values) == 1, values
assert values[0]['d'] == "is for dog", values assert values[0]['d'] == "is for dog", values
assert values[0]['a'] == "is for aardvark", values assert values[0]['a'] == "is for aardvark", values
def test_Delete(self): def test_Delete(self):
tabname = "test_Delete" tabname = "test_Delete"
self.tdb.CreateTable(tabname, ['x', 'y', 'z']) self.tdb.CreateTable(tabname, ['x', 'y', 'z'])
......
...@@ -82,5 +82,3 @@ def suite(): ...@@ -82,5 +82,3 @@ def suite():
if __name__ == '__main__': if __name__ == '__main__':
unittest.main( defaultTest='suite' ) unittest.main( defaultTest='suite' )
...@@ -94,5 +94,3 @@ def suite(): ...@@ -94,5 +94,3 @@ def suite():
if __name__ == '__main__': if __name__ == '__main__':
unittest.main( defaultTest='suite' ) unittest.main( defaultTest='suite' )
...@@ -10,5 +10,3 @@ import unittest ...@@ -10,5 +10,3 @@ import unittest
from bsddb import db from bsddb import db
from test.test_support import verbose from test.test_support import verbose
...@@ -254,5 +254,3 @@ def suite(): ...@@ -254,5 +254,3 @@ def suite():
if __name__ == '__main__': if __name__ == '__main__':
unittest.main( defaultTest='suite' ) unittest.main( defaultTest='suite' )
...@@ -352,7 +352,7 @@ class HTTPResponse: ...@@ -352,7 +352,7 @@ class HTTPResponse:
# For older HTTP, Keep-Alive indiciates persistent connection. # For older HTTP, Keep-Alive indiciates persistent connection.
if self.msg.getheader('keep-alive'): if self.msg.getheader('keep-alive'):
return False return False
# Proxy-Connection is a netscape hack. # Proxy-Connection is a netscape hack.
pconn = self.msg.getheader('proxy-connection') pconn = self.msg.getheader('proxy-connection')
if pconn and pconn.lower().find("keep-alive") >= 0: if pconn and pconn.lower().find("keep-alive") >= 0:
......
...@@ -330,7 +330,7 @@ class IMAP4: ...@@ -330,7 +330,7 @@ class IMAP4:
""" """
mech = mechanism.upper() mech = mechanism.upper()
cap = 'AUTH=%s' % mech 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) # raise self.error("Server doesn't allow %s authentication." % mech)
self.literal = _Authenticator(authobject).process self.literal = _Authenticator(authobject).process
typ, dat = self._simple_command('AUTHENTICATE', mech) typ, dat = self._simple_command('AUTHENTICATE', mech)
...@@ -1401,7 +1401,7 @@ if __name__ == '__main__': ...@@ -1401,7 +1401,7 @@ if __name__ == '__main__':
else: else:
M = IMAP4(host) M = IMAP4(host)
if M.state == 'AUTH': 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('PROTOCOL_VERSION = %s' % M.PROTOCOL_VERSION)
M._mesg('CAPABILITIES = %s' % `M.capabilities`) M._mesg('CAPABILITIES = %s' % `M.capabilities`)
......
...@@ -590,4 +590,3 @@ if __name__ == '__main__': ...@@ -590,4 +590,3 @@ if __name__ == '__main__':
print "%7s %s" % item print "%7s %s" % item
resp = s.quit() resp = s.quit()
print resp print resp
...@@ -57,4 +57,3 @@ if __name__ == '__main__': ...@@ -57,4 +57,3 @@ if __name__ == '__main__':
print '-=' * 38 print '-=' * 38
unittest.main( defaultTest='suite' ) unittest.main( defaultTest='suite' )
...@@ -221,13 +221,13 @@ if have_unicode: ...@@ -221,13 +221,13 @@ if have_unicode:
test_exc('%d', '1', TypeError, "int argument required") test_exc('%d', '1', TypeError, "int argument required")
test_exc('%g', '1', TypeError, "float 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") "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") "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") "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") "not all arguments converted during string formatting")
if sys.maxint == 2**32-1: if sys.maxint == 2**32-1:
......
...@@ -46,7 +46,7 @@ for line in data: ...@@ -46,7 +46,7 @@ for line in data:
if verbose: if verbose:
print line print line
# Perform tests # Perform tests
verify(c2 == NFC(c1) == NFC(c2) == NFC(c3), line) verify(c2 == NFC(c1) == NFC(c2) == NFC(c3), line)
verify(c4 == NFC(c4) == NFC(c5), line) verify(c4 == NFC(c4) == NFC(c5), line)
...@@ -65,4 +65,3 @@ for c in range(sys.maxunicode+1): ...@@ -65,4 +65,3 @@ for c in range(sys.maxunicode+1):
if X in part1_data: if X in part1_data:
continue continue
assert X == NFC(X) == NFD(X) == NFKC(X) == NFKD(X), c assert X == NFC(X) == NFD(X) == NFKC(X) == NFKD(X), c
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment