Skip to content

Commit

Permalink
docs: fix typos (#330)
Browse files Browse the repository at this point in the history
Found via `codespell -L juli`
  • Loading branch information
kianmeng authored Apr 24, 2023
1 parent e879cfa commit b9860a0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pypandoc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,7 @@ def _ensure_pandoc_path() -> None:
except Exception:
# we can't use that path...
if os.path.exists(path):
# path exist but is not useable -> not executable?
# path exist but is not usable -> not executable?
log_msg = ("Found {}, but not using it because of an "
"error:".format(path))
logger.exception(log_msg)
Expand Down
4 changes: 2 additions & 2 deletions pypandoc/pandoc_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def _get_pandoc_urls(version="latest"):
:return: str pandoc_urls: a dictionary with keys as system platform
and values as the url pointing to respective binaries
:return: str version: actual pandoc version. (e.g. "lastest" will be resolved to the actual one)
:return: str version: actual pandoc version. (e.g. "latest" will be resolved to the actual one)
"""
# url to pandoc download page
url = "https://github.com/jgm/pandoc/releases/" + \
Expand Down Expand Up @@ -78,7 +78,7 @@ def _get_pandoc_urls(version="latest"):
def _make_executable(path):
mode = os.stat(path).st_mode
mode |= (mode & 0o444) >> 2 # copy R bits to X
logger.info(f"Making {path} executeable...")
logger.info(f"Making {path} executable...")
os.chmod(path, mode)


Expand Down
4 changes: 2 additions & 2 deletions tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -574,9 +574,9 @@ def f():
# no extensions allowed
with closed_tempfile('.pdf') as file_name:
def f():
pypandoc.convert_text('# some title\n', to='pdf+somethign', format='md', outputfile=file_name)
pypandoc.convert_text('# some title\n', to='pdf+something', format='md', outputfile=file_name)

with self.assertRaisesRegex(RuntimeError, r"PDF output can't contain any extensions: pdf\+somethign"):
with self.assertRaisesRegex(RuntimeError, r"PDF output can't contain any extensions: pdf\+something"):
f()

def test_get_pandoc_path(self):
Expand Down

0 comments on commit b9860a0

Please sign in to comment.