Fixed get_entire_style_ranges if split_comments passed in a None

This commit is contained in:
Rob McMullen 2017-03-18 20:10:29 -07:00
parent 7ad688854c
commit b7aa965d47
1 changed files with 2 additions and 0 deletions

View File

@ -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 = []