From 4d224e7d6a9a7b743a00ca7a7b18cb6c4e4c3109 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Thu, 29 Aug 2019 13:45:33 -0700 Subject: [PATCH] Rename argument only_linear to linear_only. --- epubfile.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/epubfile.py b/epubfile.py index f8061b7..67a0303 100644 --- a/epubfile.py +++ b/epubfile.py @@ -631,9 +631,9 @@ class Epub: # SPINE ############################################################################ - def get_spine_order(self, *, only_linear=False): + def get_spine_order(self, *, linear_only=False): items = self.opf.spine.find_all('itemref') - if only_linear: + if linear_only: items = [x for x in items if x.get('linear') != 'no'] return [x['idref'] for x in items] return ids