Skip to content

Commit

Permalink
Update credsweeper/file_handler/data_content_provider.py
Browse files Browse the repository at this point in the history
Co-authored-by: ShinHyung Choi <sh519.choi@samsung.com>
  • Loading branch information
babenek and csh519 committed Nov 2, 2022
1 parent 2024255 commit a956018
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions credsweeper/file_handler/data_content_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ def is_encoded(self) -> bool:
logger.debug("Weak data to decode from base64: %s", self.data)
try:
self.decoded = base64.b64decode( #
self.data.decode(encoding='ascii', errors='strict'). #
translate(str.maketrans('', '', string.whitespace)), #
self.data.decode(encoding="ascii", errors="strict"). #
translate(str.maketrans("", "", string.whitespace)), #
validate=True) #
except Exception as exc:
logger.debug("Cannot decoded as base64:%s %s", exc, self.data)
Expand Down

0 comments on commit a956018

Please sign in to comment.