Merge pull request #4983 from willsALMANJ/4980-pep8

Make flake8 happy about complex conditional
This commit is contained in:
TW 2020-03-05 22:37:58 +01:00 committed by GitHub
commit 988f52086c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -780,9 +780,8 @@ class Archiver:
# we do not extract the very first hardlink, so we need to remember the chunks
# in hardlinks_master, so we can use them when we extract some 2nd+ hardlink item
# that has no chunks list.
if ((not has_link or (partial_extract and not matched and hardlinkable(item.mode)))
and
(item.get('hardlink_master', True) and 'source' not in item)):
if ((not has_link or (partial_extract and not matched and hardlinkable(item.mode))) and
(item.get('hardlink_master', True) and 'source' not in item)):
hardlink_masters[item.get('path')] = (item.get('chunks'), None)
filter = self.build_filter(matcher, peek_and_store_hardlink_masters, strip_components)