@@ -92,15 +92,15 @@ def current_object(cursor_offset, line):
9292 s += m .group (1 )
9393 if not s :
9494 return None
95- return LinePart (start , start + len (s ), s )
95+ return LinePart (start , start + len (s ), s )
9696
9797
9898current_object_attribute_re = LazyReCompile (r'([\w_][\w0-9_]*)[.]?' )
9999
100100
101101def current_object_attribute (cursor_offset , line ):
102102 """If in attribute completion, the attribute being completed"""
103- #TODO replace with more general current_expression_attribute
103+ # TODO replace with more general current_expression_attribute
104104 match = current_word (cursor_offset , line )
105105 if match is None :
106106 return None
@@ -216,12 +216,13 @@ def current_dotted_attribute(cursor_offset, line):
216216 return LinePart (start , end , word )
217217
218218
219- current_expression_attribute_re = LazyReCompile (r'[.]\s*((?:[\w_][\w0-9_]*)|(?:))' )
219+ current_expression_attribute_re = LazyReCompile (
220+ r'[.]\s*((?:[\w_][\w0-9_]*)|(?:))' )
220221
221222
222223def current_expression_attribute (cursor_offset , line ):
223224 """If after a dot, the attribute being completed"""
224- #TODO replace with more general current_expression_attribute
225+ # TODO replace with more general current_expression_attribute
225226 matches = current_expression_attribute_re .finditer (line )
226227 for m in matches :
227228 if (m .start (1 ) <= cursor_offset and m .end (1 ) >= cursor_offset ):
0 commit comments