Skip to content

Commit

Permalink
Add doc string
Browse files Browse the repository at this point in the history
  • Loading branch information
yaph committed Feb 4, 2020
1 parent bb65aaf commit 91f4206
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions logya/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -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('/')
Expand Down

0 comments on commit 91f4206

Please sign in to comment.