From 27937e6f83ff0a9e5a17a121316a459a40c36a6a Mon Sep 17 00:00:00 2001 From: Bastian Kleineidam Date: Mon, 22 Sep 2014 22:45:04 +0200 Subject: [PATCH] Fix requests module version check. --- doc/changelog.txt | 2 ++ linkcheck/__init__.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/changelog.txt b/doc/changelog.txt index d21849cd..0d2048c6 100644 --- a/doc/changelog.txt +++ b/doc/changelog.txt @@ -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) diff --git a/linkcheck/__init__.py b/linkcheck/__init__.py index 25f0afcc..f6073e8f 100644 --- a/linkcheck/__init__.py +++ b/linkcheck/__init__.py @@ -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