From 91f4206d9b1045858f69212fb426a7aa4c3a1483 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ramiro=20G=C3=B3mez?= Date: Wed, 5 Feb 2020 00:45:09 +0100 Subject: [PATCH] Add doc string --- logya/server.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/logya/server.py b/logya/server.py index 73259c7..6e95765 100644 --- a/logya/server.py +++ b/logya/server.py @@ -37,6 +37,11 @@ def do_GET(self): def update_resource(url): + """Update resource corresponding to given url. + + Static files are updated if necessary, documents are read, parsed and + written to the appropriate destination file.""" + # Use only the actual path and ignore possible query params issue #3. src_url = unquote(urlparse(url).path) src_name = src_url.lstrip('/')