Fixed get_entire_style_ranges if split_comments passed in a None
This commit is contained in:
parent
7ad688854c
commit
b7aa965d47
|
@ -521,6 +521,8 @@ class DefaultSegment(object):
|
|||
style_bits = self.get_style_bits(**kwargs)
|
||||
matches = self.get_comment_locations(**kwargs)
|
||||
groups = np.split(matches, np.where(np.diff(matches) != 0)[0] + 1)
|
||||
if split_comments is None:
|
||||
split_comments = []
|
||||
# print groups
|
||||
# split into groups with the same numbers
|
||||
ranges = []
|
||||
|
|
Loading…
Reference in New Issue