From f036fd05f3a944bad0f02d34c9e7ba11ddce33e6 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Tue, 26 Jan 2016 15:40:33 -0800 Subject: [PATCH] Add stubs for urllib.robotparser. --- stdlib/2.7/robotparser.pyi | 7 +++++++ stdlib/3/urllib/robotparser.pyi | 7 +++++++ 2 files changed, 14 insertions(+) create mode 100644 stdlib/2.7/robotparser.pyi create mode 100644 stdlib/3/urllib/robotparser.pyi diff --git a/stdlib/2.7/robotparser.pyi b/stdlib/2.7/robotparser.pyi new file mode 100644 index 000000000..403039ae9 --- /dev/null +++ b/stdlib/2.7/robotparser.pyi @@ -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): ... diff --git a/stdlib/3/urllib/robotparser.pyi b/stdlib/3/urllib/robotparser.pyi new file mode 100644 index 000000000..403039ae9 --- /dev/null +++ b/stdlib/3/urllib/robotparser.pyi @@ -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): ...