Skip to content

Commit 94d1a55

Browse files
authored
Use new method to avoid deprecation warning of pypandoc
`DeprecationWarning: Due to possible ambiguity, 'convert()' is deprecated. Use 'convert_file()' or 'convert_text()'.`
1 parent 831f589 commit 94d1a55

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@
3333

3434
# Convert README.md to README.rst for pypi
3535
try:
36-
from pypandoc import convert
36+
from pypandoc import convert_file
3737

3838
def read_md(f):
39-
return convert(f, 'rst')
39+
return convert_file(f, 'rst')
4040

4141
# read_md = lambda f: convert(f, 'rst')
4242
except:

0 commit comments

Comments
 (0)