forked from r4sas/PBinCLI
Codacy: fix W0106
Signed-off-by: r4sas <r4sas@i2pmail.org>
This commit is contained in:
parent
7e4fb0a8c4
commit
3ed06686ab
@ -165,7 +165,8 @@ class Paste:
|
|||||||
|
|
||||||
def decrypt(self):
|
def decrypt(self):
|
||||||
# that is wrapper which running needed function regrading to paste version
|
# 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):
|
def _decryptV2(self):
|
||||||
@ -225,7 +226,8 @@ class Paste:
|
|||||||
self._discussion = discussion
|
self._discussion = discussion
|
||||||
self._expiration = expiration
|
self._expiration = expiration
|
||||||
|
|
||||||
self._encryptV2() if self._version == 2 else self._encryptV1()
|
if self._version == 2: self._encryptV2()
|
||||||
|
else: self._encryptV1()
|
||||||
|
|
||||||
|
|
||||||
def _encryptV2(self):
|
def _encryptV2(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user