From df8ca6aae1d3261021075f42029375b4f29190bd Mon Sep 17 00:00:00 2001 From: Tim Gates Date: Sun, 6 Jun 2021 06:58:54 +1000 Subject: [PATCH] docs: Fix a few typos There are small typos in: - README.md - pyxl/codec/pytokenize.py - tests/test_whitespace_11.py Fixes: - Should read `parentheses` rather than `paretheses`. - Should read `input` rather than `intput`. - Should read `hyphen` rather than `hypen`. - Should read `argument` rather than `argment`. --- README.md | 2 +- pyxl/codec/pytokenize.py | 4 ++-- tests/test_whitespace_11.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 187fc77..5109998 100644 --- a/README.md +++ b/README.md @@ -108,7 +108,7 @@ new_form =
{old_form.children("input")} diff --git a/pyxl/codec/pytokenize.py b/pyxl/codec/pytokenize.py index 36f18ff..fbe9a9b 100644 --- a/pyxl/codec/pytokenize.py +++ b/pyxl/codec/pytokenize.py @@ -283,7 +283,7 @@ def untokenize(iterable): Round-trip invariant for full input: Untokenized source will match input source exactly - Round-trip invariant for limited intput: + Round-trip invariant for limited input: # Output text will tokenize the back to the input t1 = [tok[:2] for tok in generate_tokens(f.readline)] newcode = untokenize(t1) @@ -296,7 +296,7 @@ def untokenize(iterable): def generate_tokens(readline): """ - The generate_tokens() generator requires one argment, readline, which + The generate_tokens() generator requires one argument, readline, which must be a callable object which provides the same interface as the readline() method of built-in file objects. Each call to the function should return one line of input as a string. Alternately, readline diff --git a/tests/test_whitespace_11.py b/tests/test_whitespace_11.py index d1236c3..e9bdd0a 100644 --- a/tests/test_whitespace_11.py +++ b/tests/test_whitespace_11.py @@ -2,7 +2,7 @@ from pyxl import html def test(): - # Presence of paretheses around html should not affect contents of tags. (In old pyxl, + # Presence of parentheses around html should not affect contents of tags. (In old pyxl, # this led to differences in whitespace handling.) assert str(get_frag1()) == str(get_frag2())