Skip to content

Commit b9860a0

Browse files
authored
docs: fix typos (JessicaTegner#330)
Found via `codespell -L juli`
1 parent e879cfa commit b9860a0

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

‎pypandoc/__init__.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,7 @@ def _ensure_pandoc_path() -> None:
704704
except Exception:
705705
# we can't use that path...
706706
if os.path.exists(path):
707-
# path exist but is not useable -> not executable?
707+
# path exist but is not usable -> not executable?
708708
log_msg = ("Found {}, but not using it because of an "
709709
"error:".format(path))
710710
logger.exception(log_msg)

‎pypandoc/pandoc_download.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def _get_pandoc_urls(version="latest"):
3939
:return: str pandoc_urls: a dictionary with keys as system platform
4040
and values as the url pointing to respective binaries
4141
42-
:return: str version: actual pandoc version. (e.g. "lastest" will be resolved to the actual one)
42+
:return: str version: actual pandoc version. (e.g. "latest" will be resolved to the actual one)
4343
"""
4444
# url to pandoc download page
4545
url = "https://github.com/jgm/pandoc/releases/" + \
@@ -78,7 +78,7 @@ def _get_pandoc_urls(version="latest"):
7878
def _make_executable(path):
7979
mode = os.stat(path).st_mode
8080
mode |= (mode & 0o444) >> 2 # copy R bits to X
81-
logger.info(f"Making {path} executeable...")
81+
logger.info(f"Making {path} executable...")
8282
os.chmod(path, mode)
8383

8484

‎tests.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -574,9 +574,9 @@ def f():
574574
# no extensions allowed
575575
with closed_tempfile('.pdf') as file_name:
576576
def f():
577-
pypandoc.convert_text('# some title\n', to='pdf+somethign', format='md', outputfile=file_name)
577+
pypandoc.convert_text('# some title\n', to='pdf+something', format='md', outputfile=file_name)
578578

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

582582
def test_get_pandoc_path(self):

0 commit comments

Comments
 (0)