Skip to content

Commit

Permalink
Made basic fixes
Browse files Browse the repository at this point in the history
1. Corrected Comments and DocStrings Spell Errors.
2. Added .vscode folder to .gitignore
3. Replaced `i` with place holder `_` (as i is never used)
  • Loading branch information
Siddhesh Nachane committed Mar 31, 2018
1 parent c59480b commit cb55034
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,7 @@ venv.bak/
/site

# mypy
.mypy_cache/
.mypy_cache/

# Visual Studio Code
.vscode
6 changes: 3 additions & 3 deletions requests_html.py
Original file line number Diff line number Diff line change
Expand Up @@ -569,14 +569,14 @@ async def _async_render(*, url: str, script: str = None, scrolldown, sleep: int,
except TimeoutError:
return None

self.session.browser # Automatycally create a event loop and browser
self.session.browser # Automatically create a event loop and browser
content = None

# Automatically set Reload to False, if example URL is being used.
if self.url == DEFAULT_URL:
reload = False

for i in range(retries):
for _ in range(retries):
if not content:
try:

Expand Down Expand Up @@ -694,7 +694,7 @@ def __init__(self, loop=None, workers=None,
mock_browser: bool = True, *args, **kwargs):
""" Set or create an event loop and a thread pool.
:param loop: Asyncio lopp to use.
:param loop: Asyncio loop to use.
:param workers: Amount of threads to use for executing async calls.
If not pass it will default to the number of processors on the
machine, multiplied by 5. """
Expand Down

0 comments on commit cb55034

Please sign in to comment.