summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lee <IanLee1521@gmail.com>2016-06-06 15:31:33 -0700
committerIan Lee <IanLee1521@gmail.com>2016-06-06 16:08:23 -0700
commit7ffd648b73d289598779e6d81c2d346a36b99eb1 (patch)
tree17a1e8361c110d809a011fc494ca3389c6ebd0cd
parentadcb3a295893b9f260766594cc8c36573ee70aa2 (diff)
downloadpep8-7ffd648b73d289598779e6d81c2d346a36b99eb1.tar.gz
Reverted a few spelling changes
Based on feedback on pull request #534 on GitHub Closes #534
-rwxr-xr-xpycodestyle.py2
-rw-r--r--testsuite/test_api.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/pycodestyle.py b/pycodestyle.py
index 16cf8e2..1de3c2b 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 behavior, which does not generate NL after
+# Work around Python < 2.6 behaviour, 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'
diff --git a/testsuite/test_api.py b/testsuite/test_api.py
index 2eb5cf3..4d8b7b2 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):
- # Instanstiate a simple checker
+ # Instantiate a simple checker
pep8style = pycodestyle.StyleGuide(paths=[E11])
# Check style's attributes