mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-03-02 05:05:41 +01:00
...
This commit is contained in:
parent
30e69528a9
commit
13deb9bab0
1 changed files with 1 additions and 1 deletions
|
|
@ -344,7 +344,7 @@ def opf_xpath(self, expr):
|
|||
return self.opf.xpath(expr, namespaces=OPF_NAMESPACES)
|
||||
|
||||
def has_name(self, name):
|
||||
return name in self.name_path_map
|
||||
return name and name in self.name_path_map
|
||||
|
||||
def relpath(self, path, base=None):
|
||||
'''Convert an absolute path (with os separators) to a path relative to
|
||||
|
|
|
|||
Loading…
Reference in a new issue