Commits

martin.v.loewis  committed 5c416ae

Fix typo.

  • Participants
  • Parent commits b9b57e8

Comments (0)

Files changed (1)

File lib/openid2rp.py

             data['openid.session_type'] = ''
         del data['openid.ns']
     res = FancyURLopener().open(url, b(urllib.urlencode(data)))
-    if hasttr(res, 'getcode') and res.getcode() != 200:
+    if hasattr(res, 'getcode') and res.getcode() != 200:
         raise ValueError, "OpenID provider refuses connection with status %d" % res.getcode()
     data = parse_response(res.read())
     if 'error' in data:
     # "openid.mode"
     request.extend((k, v) for k, (v,) in response.items() if 'openid.mode' != k)
     res = FancyURLopener().open(op_endpoint, urllib.urlencode(request))
-    if hasttr(res, 'getcode') and 200 != res.getcode():
+    if hasattr(res, 'getcode') and 200 != res.getcode():
         raise NotAuthenticated(NotAuthenticated.CONNECTION_REFUSED, res.getcode())
     response = parse_response(res.read())
     if 'true' != response['is_valid']: