Skip to content

Commit

Permalink
fix default arg list->tuple
Browse files Browse the repository at this point in the history
  • Loading branch information
grantbuster committed Oct 24, 2023
1 parent b28ab99 commit 98f6aac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions elm/pdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ def combine_pages(pages):
return full

def clean_headers(self, char_thresh=0.6, page_thresh=0.8, split_on='\n',
iheaders=[0, 1, -2, -1]):
iheaders=(0, 1, -2, -1)):
"""Clean headers/footers that are duplicated across pages
Parameters
Expand All @@ -343,7 +343,7 @@ def clean_headers(self, char_thresh=0.6, page_thresh=0.8, split_on='\n',
removal
split_on : str
Chars to split lines of a page on
iheaders : list
iheaders : list | tuple
Integer indices to look for headers after splitting a page into
lines based on split_on. This needs to go from the start of the
page to the end.
Expand Down

0 comments on commit 98f6aac

Please sign in to comment.