Skip to content

Commit 5afa444

Browse files
committed
Run codespell -w with manual tune up for that alph -> alpha
1 parent 535c88a commit 5afa444

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

fire/console/console_attr.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ def __init__(self, encoding=None, suppress_output=False):
268268

269269
# ANSI "standard" attributes.
270270
if self.SupportsAnsi():
271-
# Select Graphic Rendition paramaters from
271+
# Select Graphic Rendition parameters from
272272
# http://en.wikipedia.org/wiki/ANSI_escape_code#graphics
273273
# Italic '3' would be nice here but its not widely supported.
274274
self._csi = '\x1b['
@@ -394,7 +394,7 @@ def GetControlSequenceIndicator(self):
394394
"""Returns the control sequence indicator string.
395395
396396
Returns:
397-
The conrol sequence indicator string or None if control sequences are not
397+
The control sequence indicator string or None if control sequences are not
398398
supported.
399399
"""
400400
return self._csi
@@ -408,7 +408,7 @@ def GetControlSequenceLen(self, buf):
408408
buf: The string to check for a control sequence.
409409
410410
Returns:
411-
The conrol sequence length at the beginning of buf or 0 if buf does not
411+
The control sequence length at the beginning of buf or 0 if buf does not
412412
start with a control sequence.
413413
"""
414414
if not self._csi or not buf.startswith(self._csi):

fire/console/console_attr_os.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def _GetTermSizeEnvironment():
123123

124124

125125
def _GetTermSizeTput():
126-
"""Returns the terminal x and y dimemsions from tput(1)."""
126+
"""Returns the terminal x and y dimensions from tput(1)."""
127127
import subprocess # pylint: disable=g-import-not-at-top
128128
output = encoding.Decode(subprocess.check_output(['tput', 'cols'],
129129
stderr=subprocess.STDOUT))

fire/console/console_pager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def __init__(self, contents, out=None, prompt=None):
9494
Args:
9595
contents: The entire contents of the text lines to page.
9696
out: The output stream, log.out (effectively) if None.
97-
prompt: The page break prompt, a defalt prompt is used if None..
97+
prompt: The page break prompt, a default prompt is used if None..
9898
"""
9999
self._contents = contents
100100
self._out = out or sys.stdout

fire/parser_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ def testDefaultParseValueBareWordsTuple(self):
117117

118118
def testDefaultParseValueNestedContainers(self):
119119
self.assertEqual(
120-
parser.DefaultParseValue('[(A, 2, "3"), 5, {alph: 10.2, beta: "cat"}]'),
121-
[('A', 2, '3'), 5, {'alph': 10.2, 'beta': 'cat'}])
120+
parser.DefaultParseValue('[(A, 2, "3"), 5, {alpha: 10.2, beta: "cat"}]'),
121+
[('A', 2, '3'), 5, {'alpha': 10.2, 'beta': 'cat'}])
122122

123123
def testDefaultParseValueComments(self):
124124
self.assertEqual(parser.DefaultParseValue('"0#comments"'), '0#comments')

0 commit comments

Comments
 (0)