From b7c885de5e182ad18e0a9984738f3a40dbd9a6c1 Mon Sep 17 00:00:00 2001 From: Bernard Cafarelli Date: Thu, 26 Jul 2018 01:42:12 +0200 Subject: [PATCH] Fix python version check for robobrowser issue --- dagr/dagr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dagr/dagr.py b/dagr/dagr.py index 1968da9..9854aa4 100755 --- a/dagr/dagr.py +++ b/dagr/dagr.py @@ -118,7 +118,7 @@ def set_browser(self): except ImportError: parser = "html.parser" # Workaround robobrowser bug https://github.com/jmcarp/robobrowser/issues/87 - if sys.version_info>=(3,5): + if sys.version_info>=(3,7): re._pattern_type = re.Pattern self.browser = RoboBrowser(history=False, session=session,