Skip to content

Commit

Permalink
Remove useless stderr option of subprocess.check_output()
Browse files Browse the repository at this point in the history
  • Loading branch information
chezou committed Jan 9, 2017
1 parent bf27662 commit f1db4ef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tabula/wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,10 @@ def read_pdf_table(input_path, options="", pages=1, guess=True, area=None,
args = ["java", "-jar", jar_path] + __options + [input_path]

output = subprocess.check_output(
args, stderr=subprocess.STDOUT)
args)

if len(output) == 0:
return

return pd.read_csv(io.BytesIO(output))

0 comments on commit f1db4ef

Please sign in to comment.