From ec9e8e1c58ba1ffe6ffae457a873a32d1829a1b9 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 21 Feb 2017 11:07:03 +0530 Subject: [PATCH] ... --- src/calibre/ebooks/oeb/polish/container.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/calibre/ebooks/oeb/polish/container.py b/src/calibre/ebooks/oeb/polish/container.py index 86b970d150..b123121353 100644 --- a/src/calibre/ebooks/oeb/polish/container.py +++ b/src/calibre/ebooks/oeb/polish/container.py @@ -333,6 +333,7 @@ class Container(ContainerBase): # {{{ return name in all_names def make_name_unique(self, name): + ''' Ensure that `name` does not already exist in this book. If it does, return a modified version that does not exist. ''' counter = count() while self.has_name_case_insensitive(name) or self.manifest_has_name(name): c = next(counter) + 1