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

Method url

Lib/test/test_robotparser.py:483–486  ·  view source on GitHub ↗
(self, path)

Source from the content-addressed store, hash-verified

481 cls.parser.read()
482
483 def url(self, path):
484 return '{}{}{}'.format(
485 self.base_url, path, '/' if not os.path.splitext(path)[1] else ''
486 )
487
488 def test_basic(self):
489 self.assertFalse(self.parser.disallow_all)

Callers 2

test_can_fetchMethod · 0.95
test_read_404Method · 0.95

Calls 2

splitextMethod · 0.80
formatMethod · 0.45

Tested by

no test coverage detected