/usr/share/doc/python-mechanize/examples/test/test_robotfileparser.doctest is in python-mechanize 1:0.2.5-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 | >>> from mechanize._http import MechanizeRobotFileParser
Calling .set_opener() without args sets a default opener.
>>> rfp = MechanizeRobotFileParser()
>>> rfp.set_opener()
>>> rfp._opener # doctest: +ELLIPSIS
<mechanize._opener.OpenerDirector instance at ...>
|