Skip to content

Commit

Permalink
better docstrings
Browse files Browse the repository at this point in the history
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
  • Loading branch information
kennethreitz committed Feb 27, 2018
1 parent 7eb4b5a commit add71f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions requests_html.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,9 +270,9 @@ async def _async_render(url):
self.__dict__.update(html.__dict__)


def user_agent(style=None):
def user_agent(style='chrome'):
"""Returns a random user-agent, if not requested one of a specific
style.
style. Defaults to a Chrome-style User-Agent.
"""

if not style:
Expand Down

0 comments on commit add71f6

Please sign in to comment.