Skip to content

Commit

Permalink
Fix pandoc import in setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan P Kilby committed Nov 26, 2017
1 parent f84cb2b commit c049a19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
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")

Expand Down

0 comments on commit c049a19

Please sign in to comment.