mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-09 15:14:45 +00:00
Fix requests module version check.
This commit is contained in:
parent
213c427412
commit
27937e6f83
2 changed files with 3 additions and 1 deletions
|
|
@ -16,6 +16,8 @@ Fixes:
|
|||
Closes: GH bug #536
|
||||
- checking: Add to default HTTP client headers instead of replacing.
|
||||
- cmdline: Reactivate paging of help pages.
|
||||
- requirements: Fix requests module version check.
|
||||
Closes: GH bug #548
|
||||
|
||||
|
||||
9.3 "Better Living Through Chemistry" (released 16.7.2014)
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ if not (hasattr(sys, 'version_info') or
|
|||
sys.version_info < (2, 7, 2, 'final', 0)):
|
||||
raise SystemExit("This program requires Python 2.7.2 or later.")
|
||||
import requests
|
||||
if requests.__version__ <= '2.2.0':
|
||||
if requests.__version__ < '2.2.0':
|
||||
raise SystemExit("This program requires Python requests 2.2.0 or later.")
|
||||
|
||||
import os
|
||||
|
|
|
|||
Loading…
Reference in a new issue