Commit 6950e633 authored by Tim Peters's avatar Tim Peters

Whitespace normalization.

parent 92fa557c
...@@ -205,7 +205,7 @@ class MappingBase(Base): ...@@ -205,7 +205,7 @@ class MappingBase(Base):
lst = list(self.t.values(max=99-x, min=0+x)) lst = list(self.t.values(max=99-x, min=0+x))
lst.sort() lst.sort()
self.assertEqual(lst,range(0+x,99-x+1)) self.assertEqual(lst,range(0+x,99-x+1))
def testValuesNegativeIndex(self): def testValuesNegativeIndex(self):
L = [-3, 6, -11, 4] L = [-3, 6, -11, 4]
for i in L: for i in L:
...@@ -234,7 +234,7 @@ class MappingBase(Base): ...@@ -234,7 +234,7 @@ class MappingBase(Base):
self.assertEqual(list(lst), range(0+x, 99-x+1)) self.assertEqual(list(lst), range(0+x, 99-x+1))
self.assertEqual(len(v), 100) self.assertEqual(len(v), 100)
def testKeysNegativeIndex(self): def testKeysNegativeIndex(self):
L = [-3, 6, -11, 4] L = [-3, 6, -11, 4]
for i in L: for i in L:
...@@ -266,7 +266,7 @@ class MappingBase(Base): ...@@ -266,7 +266,7 @@ class MappingBase(Base):
items = list(self.t.iteritems(min=12, max=20)) items = list(self.t.iteritems(min=12, max=20))
self.assertEqual(items, zip(range(12, 21), range(24, 43, 2))) self.assertEqual(items, zip(range(12, 21), range(24, 43, 2)))
def testItemsNegativeIndex(self): def testItemsNegativeIndex(self):
L = [-3, 6, -11, 4] L = [-3, 6, -11, 4]
for i in L: for i in L:
......
...@@ -57,14 +57,14 @@ Let's clear the handler: ...@@ -57,14 +57,14 @@ Let's clear the handler:
[] []
And then log something: And then log something:
>>> logging.getLogger('foo.bar').info('blah') >>> logging.getLogger('foo.bar').info('blah')
and, sure enough, we still have no output: and, sure enough, we still have no output:
>>> handler.records >>> handler.records
[] []
$Id$ $Id$
""" """
...@@ -112,11 +112,10 @@ class Handler(logging.Handler): ...@@ -112,11 +112,10 @@ class Handler(logging.Handler):
) )
for record in self.records] for record in self.records]
) )
class InstalledHandler(Handler): class InstalledHandler(Handler):
def __init__(self, *names): def __init__(self, *names):
Handler.__init__(self, *names) Handler.__init__(self, *names)
self.install() self.install()
...@@ -37,7 +37,7 @@ except AttributeError: ...@@ -37,7 +37,7 @@ except AttributeError:
# that failed. # that failed.
path = os.path.join(persistent.tests.__path__[0], path) path = os.path.join(persistent.tests.__path__[0], path)
source = open(path).read() source = open(path).read()
if globs is None: if globs is None:
globs = sys._getframe(1).f_globals globs = sys._getframe(1).f_globals
......
...@@ -630,4 +630,3 @@ class DataManagerAdapter(object): ...@@ -630,4 +630,3 @@ class DataManagerAdapter(object):
def sortKey(self): def sortKey(self):
return self._datamanager.sortKey() return self._datamanager.sortKey()
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