Created
July 26, 2017 20:38
-
-
Save GadgetSteve/73f24d4de181d515085c1177f37bfdef to your computer and use it in GitHub Desktop.
Reminder of LooseVersion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from distutils.version import LooseVersion | |
if LooseVersion(requests.__version__) <= LooseVersion('2.2.0'): | |
raise SystemExit("This program requires Python requests 2.2.0 or later.") | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment