diff options
author | Lars Wirzenius <liw@liw.fi> | 2017-01-08 16:21:47 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2017-01-08 16:21:47 +0200 |
commit | 5f609b1906c7e0dcc07bf7c6037ec3176603377d (patch) | |
tree | 9f224eea62113897c50afd40be1c205b90b81616 | |
parent | a5caff9be107be0aa35004626ccdcfedc32795d9 (diff) | |
download | obnam-5f609b1906c7e0dcc07bf7c6037ec3176603377d.tar.gz |
Break long lines
-rw-r--r-- | obnamlib/app.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/obnamlib/app.py b/obnamlib/app.py index 4505fc88..40f91d12 100644 --- a/obnamlib/app.py +++ b/obnamlib/app.py @@ -234,13 +234,17 @@ class App(cliapp.Application): sys.stderr.write('ERROR: %s\n' % str(e)) sys.exit(1) except obnamlib.StructuredError as e: - logging.critical(self._indent_multiline(e.formatted()), exc_info=True) + logging.critical( + self._indent_multiline(e.formatted()), + exc_info=True) sys.stderr.write('ERROR: %s\n' % e.formatted()) sys.exit(1) def _indent_multiline(self, s): lines = s.splitlines() - return ''.join([lines[0] + '\n'] + [' {}\n'.format(line) for line in lines[1:]]) + return ''.join( + [lines[0] + '\n'] + + [' {}\n'.format(line) for line in lines[1:]]) def setup_ttystatus(self): self.ts = ttystatus.TerminalStatus(period=0.1) |