Skip to content

Commit adcb3a2

Browse files
ArcTanSusanIanLee1521
authored andcommitted
Fix typos
1 parent e8d358e commit adcb3a2

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

pycodestyle.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122
LAMBDA_REGEX = re.compile(r'\blambda\b')
123123
HUNK_REGEX = re.compile(r'^@@ -\d+(?:,\d+)? \+(\d+)(?:,(\d+))? @@.*$')
124124

125-
# Work around Python < 2.6 behaviour, which does not generate NL after
125+
# Work around Python < 2.6 behavior, which does not generate NL after
126126
# a comment which is on a line by itself.
127127
COMMENT_WITH_NL = tokenize.generate_tokens(['#\n'].pop).send(None)[1] == '#\n'
128128

@@ -1339,7 +1339,7 @@ def filename_match(filename, patterns, default=True):
13391339

13401340

13411341
def update_counts(s, counts):
1342-
r"""Adds one to the counts of each appearence of characters in s,
1342+
r"""Adds one to the counts of each appearance of characters in s,
13431343
for characters in counts"""
13441344
for char in s:
13451345
if char in counts:

testsuite/test_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def test_styleguide(self):
138138
self.reset()
139139

140140
def test_styleguide_options(self):
141-
# Instanciate a simple checker
141+
# Instanstiate a simple checker
142142
pep8style = pycodestyle.StyleGuide(paths=[E11])
143143

144144
# Check style's attributes

0 commit comments

Comments
 (0)