diff options
author | Martin Panter <vadmium+py@gmail.com> | 2016-05-26 06:03:19 (GMT) |
---|---|---|
committer | Martin Panter <vadmium+py@gmail.com> | 2016-05-26 06:03:19 (GMT) |
commit | 3e04d5b3068ac67cc01a32b1d5a51ac79c9df5a1 (patch) | |
tree | 31de97216c771e456051ddbe31fc338ddf0f8b9f /Lib/lib2to3 | |
parent | 4d4bc42c8b2b4b546b36e0c3ecb1e86d57017cee (diff) | |
parent | 46f50726a0047ae81d478c3a206f587b8f35ed08 (diff) | |
download | cpython-3e04d5b3068ac67cc01a32b1d5a51ac79c9df5a1.zip cpython-3e04d5b3068ac67cc01a32b1d5a51ac79c9df5a1.tar.gz cpython-3e04d5b3068ac67cc01a32b1d5a51ac79c9df5a1.tar.bz2 |
Issue #27076: Merge spelling from 3.5
Diffstat (limited to 'Lib/lib2to3')
-rw-r--r-- | Lib/lib2to3/btm_utils.py | 2 | ||||
-rw-r--r-- | Lib/lib2to3/fixes/fix_metaclass.py | 2 | ||||
-rw-r--r-- | Lib/lib2to3/patcomp.py | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/Lib/lib2to3/btm_utils.py b/Lib/lib2to3/btm_utils.py index 339750e..ff76ba3 100644 --- a/Lib/lib2to3/btm_utils.py +++ b/Lib/lib2to3/btm_utils.py @@ -215,7 +215,7 @@ def reduce_tree(node, parent=None): #reduce to None new_node = None elif repeater_node.children[0].value == '+': - #reduce to a single occurence i.e. do nothing + #reduce to a single occurrence i.e. do nothing pass else: #TODO: handle {min, max} repeaters diff --git a/Lib/lib2to3/fixes/fix_metaclass.py b/Lib/lib2to3/fixes/fix_metaclass.py index eca3334..8e34463 100644 --- a/Lib/lib2to3/fixes/fix_metaclass.py +++ b/Lib/lib2to3/fixes/fix_metaclass.py @@ -25,7 +25,7 @@ from ..fixer_util import syms, Node, Leaf def has_metaclass(parent): """ we have to check the cls_node without changing it. - There are two possiblities: + There are two possibilities: 1) clsdef => suite => simple_stmt => expr_stmt => Leaf('__meta') 2) clsdef => simple_stmt => expr_stmt => Leaf('__meta') """ diff --git a/Lib/lib2to3/patcomp.py b/Lib/lib2to3/patcomp.py index 2012ec4..06a4b9d 100644 --- a/Lib/lib2to3/patcomp.py +++ b/Lib/lib2to3/patcomp.py @@ -3,7 +3,7 @@ """Pattern compiler. -The grammer is taken from PatternGrammar.txt. +The grammar is taken from PatternGrammar.txt. The compiler compiles a pattern to a pytree.*Pattern instance. """ |