| Name | Size | Mode | Actions |
|---|---|---|---|
| __pycache__/ | - | 0755 | rm |
| api_decode_from_web.py | 2446 | 0644 | editdlrm |
| api_extras.py | 1773 | 0644 | editdlrm |
| api_v4.py | 19345 | 0644 | editdlrm |
| cloudflare.py | 42578 | 0644 | editdlrm |
| exceptions.py | 2055 | 0644 | editdlrm |
| logging_helper.py | 1374 | 0644 | editdlrm |
| network.py | 2546 | 0644 | editdlrm |
| read_configs.py | 3231 | 0644 | editdlrm |
| utils.py | 2169 | 0644 | editdlrm |
| __init__.py | 150 | 0644 | editdlrm |
/usr/lib/python3/dist-packages/CloudFlare/api_decode_from_web.py (2446B)
End of life Date: November 2, 2020
if 'End of life Date:' in str(tag2): for child in tag2.children: deprecated_date = str(child).replace('End of life Date:','').strip() try: # clean up date d = datetime.datetime.strptime(deprecated_date, '%B %d, %Y') if d <= datetime.datetime.now(): # already done! deprecated_already = True deprecated_date = d.strftime('%Y-%m-%d') except ValueError: # Lets not worry about all the date formats that could show-up. Leave as a string pass break if deprecated_date != '': break # look for all API calls in section for tag2 in section.find_all('pre'): cmd = [] for child in tag2.children: if isinstance(child, Comment): # remove