Return True if we should check for an update
()
| 119 | return time.time() |
| 120 | |
| 121 | def should_check(): |
| 122 | """Return True if we should check for an update""" |
| 123 | filename = cache_file() |
| 124 | |
| 125 | if not filename: |
| 126 | return False |
| 127 | |
| 128 | if disabled or read(filename).strip() == b'never': |
| 129 | return False |
| 130 | |
| 131 | return time.time() > (last_check() + update_freq) |
| 132 | |
| 133 | def perform_check(prerelease=current_version.is_prerelease): |
| 134 | """Perform the update check, and report to the user. |
no test coverage detected