3333def _create_slice_and_project_example ():
3434 r"""Creates an example for test_slice_and_project.
3535
36- Returns:
36+ Returns:
3737 ------*-----------------
3838 / \
3939 ---session0---- session1
@@ -44,8 +44,8 @@ def _create_slice_and_project_example():
4444 | | | | | | | | |
4545 a b c e f g h i j
4646
47- This also adds an action_mask that is false for the zeroeth action.
48- """
47+ This also adds an action_mask that is false for the zeroeth action.
48+ """
4949 return proto_test_util .text_to_expression (
5050 [
5151 """
@@ -107,17 +107,17 @@ def _create_nested_prensor():
107107 root0 root1----------------------- root2 (empty)
108108 / \ / \ \ \
109109 | keep_my_sib0:False | keep_my_sib1:True | keep_my_sib2:False
110- doc0----- doc1--------------- doc2--------
111- | \ \ \ \ \
110+ doc0----- doc1--------------- doc2--------
111+ | \ \ \ \ \
112112 bar:"a" keep_me:False bar:"b" bar:"c" keep_me:True bar:"d"
113113
114- Returns:
114+ Returns:
115115 a prensor expression representing:
116116 {doc:[{bar:["a"], keep_me:False}], keep_my_sib:False}
117117 {doc:[{bar:["b","c"], keeo}, {bar:["d"]}],
118118 keep_me:True}
119119 {}
120- """
120+ """
121121 return prensor .create_prensor_from_descendant_nodes (
122122 {
123123 path .Path ([]): prensor_test_util .create_root_node (3 ),
@@ -138,24 +138,24 @@ def _create_nested_prensor():
138138def _create_nested_prensor_2 ():
139139 r"""Creates a prensor representing a list of nested protocol buffers.
140140
141- keep_me no longer has a value in doc0.
141+ keep_me no longer has a value in doc0.
142142
143143 -----*----------------------------------------------------
144144 / \ \
145145 root0 root1----------------------- root2 (empty)
146146 / \ / \ \ \
147147 | keep_my_sib0:False | keep_my_sib1:True | keep_my_sib2:False
148- doc0 doc1--------------- doc2--------
149- | \ \ \ \
148+ doc0 doc1--------------- doc2--------
149+ | \ \ \ \
150150 bar:"a" bar:"b" bar:"c" keep_me:True bar:"d"
151151
152- Returns:
152+ Returns:
153153 a prensor expression representing:
154154 {doc:[{bar:["a"], keep_me:False}], keep_my_sib:False}
155155 {doc:[{bar:["b","c"], keeo}, {bar:["d"]}],
156156 keep_me:True}
157157 {}
158- """
158+ """
159159 return prensor .create_prensor_from_descendant_nodes (
160160 {
161161 path .Path ([]): prensor_test_util .create_root_node (3 ),
@@ -290,19 +290,19 @@ def test_filter_by_child_create_nested_prensor_2(self):
290290 def test_filter_by_sibling (self ):
291291 r"""Tests filter_by_sibling.
292292
293- Beginning with the struct:
293+ Beginning with the struct:
294294 -----*----------------------------------------------------
295295 / \ \
296296 root0 root1----------------------- root2 (empty)
297- / \ / \ \ \
297+ / \ / \ \ \
298298 | keep_my_sib0:False | keep_my_sib1:True | keep_my_sib2:False
299- doc0----- doc1--------------- doc2--------
300- | \ \ \ \ \
299+ doc0----- doc1--------------- doc2--------
300+ | \ \ \ \ \
301301 bar:"a" keep_me:False bar:"b" bar:"c" keep_me:True bar:"d"
302302
303- Filter doc with keep_my_sib:
303+ Filter doc with keep_my_sib:
304304
305- End with the struct (suppressing original doc):
305+ End with the struct (suppressing original doc):
306306 -----*----------------------------------------------------
307307 / \ \
308308 root0 root1------------------ root2 (empty)
@@ -312,7 +312,7 @@ def test_filter_by_sibling(self):
312312 \ \ \
313313 bar:"b" bar:"c" keep_me:True
314314
315- """
315+ """
316316 root = create_expression .create_expression_from_prensor (
317317 _create_nested_prensor ()
318318 )
0 commit comments