@@ -67,7 +67,7 @@ def read_to_condition(self, condition_func):
6767 return self [start :self ._l ]
6868 self ._l += 1
6969 if self .eof ():
70- return self [start :self ._l + 1 ]
70+ return self [start :self ._l + 1 ]
7171 return []
7272
7373 def read_to_next_empty_line (self ):
@@ -139,7 +139,7 @@ def _is_at_section(self):
139139 return True
140140
141141 l2 = self ._doc .peek (1 ).strip () # ---------- or ==========
142- return l2 .startswith ('-' * len (l1 )) or l2 .startswith ('=' * len (l1 ))
142+ return l2 .startswith ('-' * len (l1 )) or l2 .startswith ('=' * len (l1 ))
143143
144144 def _strip (self , doc ):
145145 i = 0
@@ -152,7 +152,7 @@ def _strip(self, doc):
152152 if line .strip ():
153153 break
154154
155- return doc [i :len (doc )- j ]
155+ return doc [i :len (doc ) - j ]
156156
157157 def _read_to_next_section (self ):
158158 section = self ._doc .read_to_next_empty_line ()
@@ -309,12 +309,12 @@ def _parse(self):
309309 # string conversion routines
310310
311311 def _str_header (self , name , symbol = '-' ):
312- return [name , len (name )* symbol ]
312+ return [name , len (name ) * symbol ]
313313
314314 def _str_indent (self , doc , indent = 4 ):
315315 out = []
316316 for line in doc :
317- out += [' ' * indent + line ]
317+ out += [' ' * indent + line ]
318318 return out
319319
320320 def _str_signature (self ):
@@ -408,7 +408,7 @@ def __str__(self, func_role=''):
408408
409409
410410def indent (str , indent = 4 ):
411- indent_str = ' ' * indent
411+ indent_str = ' ' * indent
412412 if str is None :
413413 return indent_str
414414 lines = str .split ('\n ' )
@@ -421,7 +421,7 @@ def dedent_lines(lines):
421421
422422
423423def header (text , style = '-' ):
424- return text + '\n ' + style * len (text ) + '\n '
424+ return text + '\n ' + style * len (text ) + '\n '
425425
426426
427427class FunctionDoc (NumpyDocString ):
0 commit comments