MCPcopy Create free account
hub / github.com/mozilla/cipherscan / str_compat

Function str_compat

analyze.py:21–24  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

19 from urllib.error import URLError
20
21def str_compat(data):
22 if sys.version_info >= (3,0):
23 data = str(data, 'utf-8')
24 return data
25
26# has_good_pfs compares a given PFS configuration with a target
27# dh parameter a target elliptic curve, and return true if good

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected