diff --git a/setup.py b/setup.py index 385413052..3ecd5fb07 100755 --- a/setup.py +++ b/setup.py @@ -9,10 +9,10 @@ from io import open from setuptools import setup try: - from pypandoc import convert + from pypandoc import convert_file def read_md(f): - return convert(f, 'rst') + return convert_file(f, 'rst') except ImportError: print("warning: pypandoc module not found, could not convert Markdown to RST")