(data)
| 19 | from urllib.error import URLError |
| 20 | |
| 21 | def 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 |