Skip to content
This repository has been archived by the owner on Dec 6, 2023. It is now read-only.

Commit

Permalink
Included self arg in _trans_str method arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
yzninja committed Sep 10, 2015
1 parent 037d0a7 commit 6fcad97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nogotofail/mitm/connection/handlers/data/ssl.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ def _alert_on_sunset_sha1(self, crt_not_after, crt_CN):
self.connection, self.name, True, ""))
self.connection.vuln_notify(util.vuln.VULN_SUNSET_SHA1)

def _str_trans(s):
def _str_trans(self, s):
""" Converts objects to strings, and "None" objects to empty strings.
"""
return '' if s is None else str(s)

0 comments on commit 6fcad97

Please sign in to comment.