From 3ed06686abda55bddde78b88c3e8aa2aa725ff69 Mon Sep 17 00:00:00 2001 From: r4sas Date: Thu, 19 Sep 2019 00:10:39 +0000 Subject: [PATCH] Codacy: fix W0106 Signed-off-by: r4sas --- pbincli/format.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pbincli/format.py b/pbincli/format.py index 3bd407d..8187cd3 100644 --- a/pbincli/format.py +++ b/pbincli/format.py @@ -165,7 +165,8 @@ class Paste: def decrypt(self): # that is wrapper which running needed function regrading to paste version - self._decryptV2() if self._version == 2 else self._decryptV1() + if self._version == 2: self._decryptV2() + else: self._decryptV1() def _decryptV2(self): @@ -225,7 +226,8 @@ class Paste: self._discussion = discussion self._expiration = expiration - self._encryptV2() if self._version == 2 else self._encryptV1() + if self._version == 2: self._encryptV2() + else: self._encryptV1() def _encryptV2(self):