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

Method modified

Lib/urllib/robotparser.py:61–67  ·  view source on GitHub ↗

Sets the time the robots.txt file was last fetched to the current time.

(self)

Source from the content-addressed store, hash-verified

59 return self.last_checked
60
61 def modified(self):
62 """Sets the time the robots.txt file was last fetched to the
63 current time.
64
65 """
66 import time
67 self.last_checked = time.time()
68
69 def set_url(self, url):
70 """Sets the URL referring to a robots.txt file."""

Callers 1

parseMethod · 0.95

Calls 1

timeMethod · 0.45

Tested by

no test coverage detected