From e9f6b98816c220129fb02e6c09f488ecc8d686bd Mon Sep 17 00:00:00 2001 From: Paul Tremberth Date: Thu, 28 Jan 2016 14:39:19 +0100 Subject: [PATCH] Amend guess_scheme() docstring --- scrapy/utils/url.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/scrapy/utils/url.py b/scrapy/utils/url.py index 4b47566e5..adef4a800 100644 --- a/scrapy/utils/url.py +++ b/scrapy/utils/url.py @@ -125,10 +125,7 @@ def add_http_if_no_scheme(url): def guess_scheme(url): - """Given an URL as string, - returns a FileURI if it looks like a file path, - otherwise returns an HTTP URL - """ + """Add an URL scheme if missing: file:// for filepath-like input or http:// otherwise.""" parts = urlparse(url) if parts.scheme: return url