Fix requests module version check.

This commit is contained in:
Bastian Kleineidam 2014-09-22 22:45:04 +02:00
parent 213c427412
commit 27937e6f83
2 changed files with 3 additions and 1 deletions

View file

@ -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)

View file

@ -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