doku2git: Remove redundant parenthesis in operation test

This commit is contained in:
Danny Robson 2019-07-07 14:37:44 +10:00
parent 6d0b2aebe0
commit a244617c56

View File

@ -115,7 +115,7 @@ class Change(object):
# If we're not trying to delete a page then ensure we can see the # If we're not trying to delete a page then ensure we can see the
# source material in the Dokuwiki attic # source material in the Dokuwiki attic
if self.operation not in ('D'): if self.operation not in 'D':
attic = os.path.join(src.root, self._attic(src)) attic = os.path.join(src.root, self._attic(src))
if not os.path.isfile(attic): if not os.path.isfile(attic):
log.error(f'Source file {attic} not present for {self}; ignoring') log.error(f'Source file {attic} not present for {self}; ignoring')