Skip to content

Commit

Permalink
Merge pull request #124 from felixonmars/patch-1
Browse files Browse the repository at this point in the history
Use new method to avoid deprecation warning of pypandoc
  • Loading branch information
rowanseymour committed Sep 18, 2018
2 parents d1189fc + 9614eda commit b318518
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
@@ -1,8 +1,8 @@
from setuptools import setup, find_packages

try:
from pypandoc import convert
read_md = lambda f: convert(f, 'rst') # noqa
from pypandoc import convert_file
read_md = lambda f: convert_file(f, 'rst') # noqa
except ImportError:
print("warning: pypandoc module not found, could not convert Markdown to RST")
read_md = lambda f: open(f, 'r').read() # noqa
Expand Down

0 comments on commit b318518

Please sign in to comment.