diff options
Diffstat (limited to 'logilab/common/urllib2ext.py')
-rw-r--r-- | logilab/common/urllib2ext.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/logilab/common/urllib2ext.py b/logilab/common/urllib2ext.py index dfbafc1..40cac40 100644 --- a/logilab/common/urllib2ext.py +++ b/logilab/common/urllib2ext.py @@ -6,13 +6,13 @@ import urllib2 import kerberos as krb -class GssapiAuthError(Exception): - """raised on error during authentication process""" +import re +RGX = re.compile(r"(?:.*,)*\s*Negotiate\s*([^,]*),?", re.I) -import re -RGX = re.compile("(?:.*,)*\s*Negotiate\s*([^,]*),?", re.I) +class GssapiAuthError(Exception): + """raised on error during authentication process""" def get_negociate_value(headers): @@ -85,8 +85,6 @@ if __name__ == "__main__": httplib.HTTPConnection.debuglevel = 1 httplib.HTTPSConnection.debuglevel = 1 - # debug - import logging logging.basicConfig(level=logging.DEBUG) # handle cookies |