Update pyinfra/facts/files.py
Fix flake8 and pytest
@@ -157,8 +157,11 @@ class Sha256File(FactBase):
def command(self, name):
name = escape_unix_path(name)
self.name = name
- return 'sha256sum {0} 2> /dev/null || shasum -a 256 {0} 2> /dev/null \
- || sha256 {0}'.format(name)
+ return (
+ 'sha256sum {0} 2> /dev/null '
+ '|| shasum -a 256 {0} 2> /dev/null '
+ '|| sha256 {0}'
+ ).format(name)
def process(self, output):
for regex in self._regexes:
