Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def setUpClass(cls):
pypandoc.pandoc_download.download_pandoc(version='1.19.2')
def setUpClass(cls):
pypandoc.pandoc_download.download_pandoc(version='1.19.2')
def download_pandoc():
try:
pandoc_download._handle_linux = _handle_linux
return pandoc_download.download_pandoc(targetfolder=path, version="latest")
finally:
if os.path.isfile(filename):
os.remove(filename)