Coding style.
- Code was being run unnecessarily.
This commit is contained in:
parent
dd7e740ae7
commit
0249dcfe72
1 changed files with 1 additions and 2 deletions
|
|
@ -75,11 +75,10 @@ class Worker:
|
|||
def make_result_widget(text, result, compression):
|
||||
appearance = fill3.str_to_appearance(text)
|
||||
page_size = 500
|
||||
compression_open_func = tools.compression_open_func(compression)
|
||||
if len(appearance) > page_size:
|
||||
appearance = eris.paged_list.PagedList(
|
||||
appearance, result.get_pages_dir(), page_size, cache_size=2,
|
||||
exist_ok=True, open_func=compression_open_func)
|
||||
exist_ok=True, open_func=tools.compression_open_func(compression))
|
||||
return fill3.Fixed(appearance)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue