From 788342ea1bd431d0ab463df5955175e7f28ea61b Mon Sep 17 00:00:00 2001 From: Marcus Huewe Date: Thu, 26 Aug 2010 17:38:47 +0200 Subject: [PATCH] - oops (forgot 'not') --- osc/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osc/conf.py b/osc/conf.py index f025e18c..6ce2c4e0 100644 --- a/osc/conf.py +++ b/osc/conf.py @@ -368,7 +368,7 @@ def _build_opener(url): # workaround for http://bugs.python.org/issue9639 authhandler_class = urllib2.HTTPBasicAuthHandler if sys.version_info >= (2, 6, 6) and sys.version_info < (2, 7, 1) \ - and 'reset_retry_count' in dir(urllib2.HTTPBasicAuthHandler): + and not 'reset_retry_count' in dir(urllib2.HTTPBasicAuthHandler): print >>sys.stderr, 'warning: your urllib2 version seems to be broken. ' \ 'Using a workaround for http://bugs.python.org/issue9639' class OscHTTPBasicAuthHandler(urllib2.HTTPBasicAuthHandler):