Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Delete trailing whitespace.

  • Loading branch information...
commit 4a1776e72e4144373f91fccd6556a055b3e76c41 1 parent ff6d8c2
@douglatornell douglatornell authored
Showing with 11 additions and 11 deletions.
  1. +2 −2 colander/__init__.py
  2. +9 −9 colander/tests/test_colander.py
View
4 colander/__init__.py
@@ -1708,7 +1708,7 @@ def __init__(self, *arg, **kw):
_add_node_children(self, arg[1:])
else:
self.typ = self.schema_type()
-
+
# bw compat forces us to manufacture a title if one is not supplied
title = kw.get('title', _marker)
if title is _marker:
@@ -1999,7 +1999,7 @@ def __init__(cls, name, bases, clsattrs):
(_SchemaNode,),
{}
)
-
+
class Schema(SchemaNode):
schema_type = Mapping
View
18 colander/tests/test_colander.py
@@ -465,7 +465,7 @@ def test_it_success(self):
val = 'http://example.com'
result = self._callFUT(val)
self.assertEqual(result, None)
-
+
def test_it_failure(self):
val = 'not-a-url'
from colander import Invalid
@@ -727,7 +727,7 @@ def test_cstruct_children_cstruct_is_null(self):
node1.children = [node2]
result = typ.cstruct_children(node1, null)
self.assertEqual(result, [null])
-
+
def test_cstruct_children(self):
from colander import null
typ = self._makeOne()
@@ -959,7 +959,7 @@ def test_cstruct_children_cstruct_is_null(self):
node1.children = [node2]
result = typ.cstruct_children(node1, null)
self.assertEqual(result, [null])
-
+
def test_cstruct_children_toomany(self):
typ = self._makeOne()
node1 = DummySchemaNode(typ, name='node1')
@@ -1197,7 +1197,7 @@ def test_cstruct_children_cstruct_is_null(self):
typ = self._makeOne()
result = typ.cstruct_children(None, null)
self.assertEqual(result, SequenceItems([]))
-
+
def test_cstruct_children_cstruct_is_non_null(self):
from colander import SequenceItems
typ = self._makeOne()
@@ -2508,7 +2508,7 @@ class MyNode(colander.SchemaNode):
node = MyNode(missing=5)
result = node.deserialize(colander.null)
self.assertEqual(result, 5)
-
+
def test_method_values_can_rely_on_binding(self):
import colander
class MyNode(colander.SchemaNode):
@@ -2751,14 +2751,14 @@ class Two(One):
id='a2',
)
c = colander.SchemaNode(
- colander.String(),
+ colander.String(),
id='c2',
)
e = colander.SchemaNode(
colander.String(),
id='e2',
)
-
+
class Three(Two):
b = colander.SchemaNode(
colander.Bool(),
@@ -2801,14 +2801,14 @@ class Two(colander.Schema):
id='a2',
)
c = colander.SchemaNode(
- colander.String(),
+ colander.String(),
id='c2',
)
e = colander.SchemaNode(
colander.String(),
id='e2',
)
-
+
class Three(Two, One):
b = colander.SchemaNode(
colander.Bool(),
Please sign in to comment.
Something went wrong with that request. Please try again.