Add stubs for urllib.robotparser.

This commit is contained in:
Tim Abbott
2016-01-26 15:40:33 -08:00
committed by Tim Abbott
parent a725360139
commit f036fd05f3
2 changed files with 14 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
class RobotFileParser:
def set_url(self, url: str): ...
def read(self): ...
def parse(self, lines: str): ...
def can_fetch(self, user_agent: str, url: str): ...
def mtime(self): ...
def modified(self): ...

View File

@@ -0,0 +1,7 @@
class RobotFileParser:
def set_url(self, url: str): ...
def read(self): ...
def parse(self, lines: str): ...
def can_fetch(self, user_agent: str, url: str): ...
def mtime(self): ...
def modified(self): ...