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

Method __init__

Lib/urllib/robotparser.py:43–50  ·  view source on GitHub ↗
(self, url='')

Source from the content-addressed store, hash-verified

41 """
42
43 def __init__(self, url=''):
44 self.entries = []
45 self.sitemaps = []
46 self.default_entry = None
47 self.disallow_all = False
48 self.allow_all = False
49 self.set_url(url)
50 self.last_checked = 0
51
52 def mtime(self):
53 """Returns the time the robots.txt file was last fetched.

Callers

nothing calls this directly

Calls 1

set_urlMethod · 0.95

Tested by

no test coverage detected