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())