From a71ad4e303c8554df41289ef237aaedde85a0687 Mon Sep 17 00:00:00 2001 From: Rick Bernotas Date: Thu, 4 Mar 2021 13:09:57 -0600 Subject: [PATCH] Fix indentation. --- apps/filebrowser/src/filebrowser/views.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/filebrowser/src/filebrowser/views.py b/apps/filebrowser/src/filebrowser/views.py index 25f0f1dadf0..ad4d30f1d56 100644 --- a/apps/filebrowser/src/filebrowser/views.py +++ b/apps/filebrowser/src/filebrowser/views.py @@ -921,10 +921,10 @@ def _read_gzip(fhandle, path, offset, length, stats): if offset and offset != 0: raise PopupException(_("Offsets are not supported with Gzip compression.")) try: - if sys.version_info[0] > 2: - contents = decompress_gzip(fhandle.read()) - else: - contents = GzipFile('', 'r', 0, string_io(fhandle.read())).read(length) + if sys.version_info[0] > 2: + contents = decompress_gzip(fhandle.read()) + else: + contents = GzipFile('', 'r', 0, string_io(fhandle.read())).read(length) except Exception as e: logging.exception('Could not decompress file at "%s": %s' % (path, e)) raise PopupException(_("Failed to decompress file."))