MCPcopy Index your code
hub / github.com/python/cpython / RecordingOpenerDirector

Class RecordingOpenerDirector

Lib/test/test_urllib2.py:1674–1680  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1672 # try digest first (since it's the strongest auth scheme), so we record
1673 # order of calls here to check digest comes first:
1674 class RecordingOpenerDirector(OpenerDirector):
1675 def __init__(self):
1676 OpenerDirector.__init__(self)
1677 self.recorded = []
1678
1679 def record(self, info):
1680 self.recorded.append(info)
1681
1682 class TestDigestAuthHandler(urllib.request.HTTPDigestAuthHandler):
1683 def http_error_401(self, *args, **kwds):

Calls

no outgoing calls

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…