Skip to content

Commit

Permalink
Set default timeout to None
Browse files Browse the repository at this point in the history
  • Loading branch information
Belval authored Aug 17, 2020
1 parent e5081f6 commit e07505b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pdf2image/pdf2image.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def convert_from_path(
size=None,
paths_only=False,
use_pdftocairo=False,
timeout=600,
timeout=None,
):
"""
Description: Convert PDF to Image will throw whenever one of the condition is reached
Expand Down Expand Up @@ -235,7 +235,7 @@ def convert_from_bytes(
size=None,
paths_only=False,
use_pdftocairo=False,
timeout=600,
timeout=None,
):
"""
Description: Convert PDF to Image will throw whenever one of the condition is reached
Expand Down Expand Up @@ -396,7 +396,7 @@ def _get_command_path(command, poppler_path=None):
return command


def _get_poppler_version(command, poppler_path=None, timeout=60):
def _get_poppler_version(command, poppler_path=None, timeout=None):
command = [_get_command_path(command, poppler_path), "-v"]

env = os.environ.copy()
Expand All @@ -422,7 +422,7 @@ def _get_poppler_version(command, poppler_path=None, timeout=60):


def pdfinfo_from_path(
pdf_path, userpw=None, poppler_path=None, rawdates=False, timeout=60
pdf_path, userpw=None, poppler_path=None, rawdates=False, timeout=None
):
try:
command = [_get_command_path("pdfinfo", poppler_path), pdf_path]
Expand Down Expand Up @@ -473,7 +473,7 @@ def pdfinfo_from_path(


def pdfinfo_from_bytes(
pdf_file, userpw=None, poppler_path=None, rawdates=False, timeout=60
pdf_file, userpw=None, poppler_path=None, rawdates=False, timeout=None
):
fh, temp_filename = tempfile.mkstemp()
try:
Expand Down

0 comments on commit e07505b

Please sign in to comment.