Skip to content
This repository has been archived by the owner on Dec 4, 2018. It is now read-only.

Commit

Permalink
request_url: print URL to help in debugging.
Browse files Browse the repository at this point in the history
  • Loading branch information
otsaloma committed Jun 28, 2014
1 parent b14bf68 commit ef0ae2e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions poor/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ def request_url(url, encoding=None, timeout=None):
to text using `encoding`. If `timeout` is ``None`` use
:var:`poor.conf.download_timeout`.
"""
print("Requesting {}".format(url))
opener = urllib.request.build_opener()
agent = "poor-maps/{}".format(poor.__version__)
opener.addheaders = [("User-Agent", agent)]
Expand Down

0 comments on commit ef0ae2e

Please sign in to comment.