From b076cdc12a9af2e8203cd5a625e2029955940b48 Mon Sep 17 00:00:00 2001 From: Max Nordlund Date: Tue, 26 Dec 2017 00:51:29 +0100 Subject: [PATCH 1/3] Fix typo --- parso/_compatibility.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parso/_compatibility.py b/parso/_compatibility.py index 9ddf23d..db411ee 100644 --- a/parso/_compatibility.py +++ b/parso/_compatibility.py @@ -36,7 +36,7 @@ except AttributeError: def u(string): """Cast to unicode DAMMIT! Written because Python2 repr always implicitly casts to a string, so we - have to cast back to a unicode (and we now that we always deal with valid + have to cast back to a unicode (and we know that we always deal with valid unicode, because we check that in the beginning). """ if py_version >= 30: From e689f3dce6317f395fcd89143003fdb772444cb0 Mon Sep 17 00:00:00 2001 From: lcolaholicl Date: Sat, 30 Dec 2017 17:29:27 +0900 Subject: [PATCH 2/3] Fix typo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit keyworda → keyword --- parso/grammar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parso/grammar.py b/parso/grammar.py index 2cf26d7..e5abf81 100644 --- a/parso/grammar.py +++ b/parso/grammar.py @@ -73,7 +73,7 @@ class Grammar(object): :py:class:`parso.python.tree.Module`. """ if 'start_pos' in kwargs: - raise TypeError("parse() got an unexpected keyworda argument.") + raise TypeError("parse() got an unexpected keyword argument.") return self._parse(code=code, **kwargs) def _parse(self, code=None, error_recovery=True, path=None, From 7db500bfbc9deb1dff5ae3e79df376f10d89b371 Mon Sep 17 00:00:00 2001 From: lcolaholicl Date: Sat, 30 Dec 2017 17:38:42 +0900 Subject: [PATCH 3/3] Fix another typo. Delete accidentally repeated `None.` --- parso/tree.py | 1 - 1 file changed, 1 deletion(-) diff --git a/parso/tree.py b/parso/tree.py index 72a1494..6108612 100644 --- a/parso/tree.py +++ b/parso/tree.py @@ -55,7 +55,6 @@ class NodeOrLeaf(object): Returns the node immediately preceding this node in this parent's children list. If this node does not have a previous sibling, it is None. - None. """ # Can't use index(); we need to test by identity for i, child in enumerate(self.parent.children):