Skip to content

Commit 84f910d

Browse files
committed
(linter) Fix pycodestyle complaints
Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
1 parent 4a261a1 commit 84f910d

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/patchset.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ def _hash_patch(self, patch_name, patch_file):
6161

6262
hashable_content = b"/n".join(hashable_patch_lines)
6363
self.log.debug(
64-
"Hashable content:\n" +
65-
hashable_content.decode("utf-8")
64+
"Hashable content:\n"
65+
+ hashable_content.decode("utf-8")
6666
)
6767
patch_hash_digest = hashlib.sha256(hashable_content).hexdigest()
6868
self.log.debug(f"Patch {patch_name} hash: {patch_hash_digest}")

src/send_kcidb.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,13 +225,13 @@ def _get_log_excerpt(self, log_url):
225225
buffer_data = io.BytesIO(res.content)
226226
with gzip.open(buffer_data, mode='rt') as fp:
227227
data = fp.read()
228-
trunc_data = data[-(16*1024):]
228+
trunc_data = data[-(16 * 1024):]
229229
self._excerptcache[log_url] = trunc_data
230230
return trunc_data
231231
except gzip.BadGzipFile:
232232
# parse text file such as kunit log file `test_log`
233233
data = res.content.decode("utf-8")
234-
trunc_data = data[-(16*1024):]
234+
trunc_data = data[-(16 * 1024):]
235235
self._excerptcache[log_url] = trunc_data
236236
return trunc_data
237237

0 commit comments

Comments
 (0)