File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 67
67
import codecs
68
68
import json
69
69
70
- def load_design_doc (directory , strip_files = False ):
70
+ def load_design_doc (directory , strip = False ):
71
71
"""
72
72
Load a design document from the filesystem.
73
73
74
- strip_files : remove leading and trailing whitespace from file contents,
74
+ strip : remove leading and trailing whitespace from file contents,
75
75
like couchdbkit.
76
76
"""
77
77
objects = {}
@@ -88,7 +88,7 @@ def load_design_doc(directory, strip_files=False):
88
88
contents = f .read ()
89
89
if name .endswith ('.json' ):
90
90
contents = json .loads (contents )
91
- elif strip_files :
91
+ elif strip :
92
92
contents = contents .strip ()
93
93
ob [fkey ] = contents
94
94
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ class LoaderTestCase(unittest.TestCase):
22
22
23
23
def test_loader (self ):
24
24
directory = os .path .join (os .path .dirname (__file__ ), '_loader' )
25
- doc = loader .load_design_doc (directory , strip_files = True )
25
+ doc = loader .load_design_doc (directory , strip = True )
26
26
self .assertEqual (doc , expected )
27
27
28
28
You can’t perform that action at this time.
0 commit comments