summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSusan Tan <onceuponatimeforever@gmail.com>2016-06-03 12:17:41 -0700
committerIan Lee <IanLee1521@gmail.com>2016-06-06 16:08:23 -0700
commitadcb3a295893b9f260766594cc8c36573ee70aa2 (patch)
treebe6b2586ff255fe681112893c6f30060daecf81a
parente8d358eb27f43544480396ef15fed6b4563537b2 (diff)
downloadpep8-adcb3a295893b9f260766594cc8c36573ee70aa2.tar.gz
Fix typos
-rwxr-xr-xpycodestyle.py4
-rw-r--r--testsuite/test_api.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/pycodestyle.py b/pycodestyle.py
index d0a97c6..16cf8e2 100755
--- a/pycodestyle.py
+++ b/pycodestyle.py
@@ -122,7 +122,7 @@ OPERATOR_REGEX = re.compile(r'(?:[^,\s])(\s*)(?:[-+*/|!<=>%&^]+)(\s*)')
LAMBDA_REGEX = re.compile(r'\blambda\b')
HUNK_REGEX = re.compile(r'^@@ -\d+(?:,\d+)? \+(\d+)(?:,(\d+))? @@.*$')
-# Work around Python < 2.6 behaviour, which does not generate NL after
+# Work around Python < 2.6 behavior, which does not generate NL after
# a comment which is on a line by itself.
COMMENT_WITH_NL = tokenize.generate_tokens(['#\n'].pop).send(None)[1] == '#\n'
@@ -1339,7 +1339,7 @@ def filename_match(filename, patterns, default=True):
def update_counts(s, counts):
- r"""Adds one to the counts of each appearence of characters in s,
+ r"""Adds one to the counts of each appearance of characters in s,
for characters in counts"""
for char in s:
if char in counts:
diff --git a/testsuite/test_api.py b/testsuite/test_api.py
index 7d381ad..2eb5cf3 100644
--- a/testsuite/test_api.py
+++ b/testsuite/test_api.py
@@ -138,7 +138,7 @@ class APITestCase(unittest.TestCase):
self.reset()
def test_styleguide_options(self):
- # Instanciate a simple checker
+ # Instanstiate a simple checker
pep8style = pycodestyle.StyleGuide(paths=[E11])
# Check style's attributes