From edbd1e99968b7048c6d4e1cbd65e16d4c5604c92 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Sun, 2 Feb 2020 19:38:24 -0800 Subject: [PATCH] Apply new pathclass.Extension with_dot. --- epubfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/epubfile.py b/epubfile.py index 50d8780..32ed374 100644 --- a/epubfile.py +++ b/epubfile.py @@ -1296,7 +1296,7 @@ def addfile_argparse(args): rand_suffix = random_string(3, string.digits) base = file.replace_extension('').basename id = f'{base}_{rand_suffix}' - basename = f'{base}_{rand_suffix}{file.dot_extension}' + basename = f'{base}_{rand_suffix}{file.extension.with_dot}' content = open(file.absolute_path, 'rb').read() book.add_file(id, basename, content)