diff options
author | Susan Tan <onceuponatimeforever@gmail.com> | 2016-06-03 12:17:41 -0700 |
---|---|---|
committer | Ian Lee <IanLee1521@gmail.com> | 2016-06-06 16:08:23 -0700 |
commit | adcb3a295893b9f260766594cc8c36573ee70aa2 (patch) | |
tree | be6b2586ff255fe681112893c6f30060daecf81a /pycodestyle.py | |
parent | e8d358eb27f43544480396ef15fed6b4563537b2 (diff) | |
download | pep8-adcb3a295893b9f260766594cc8c36573ee70aa2.tar.gz |
Fix typos
Diffstat (limited to 'pycodestyle.py')
-rwxr-xr-x | pycodestyle.py | 4 |
1 files changed, 2 insertions, 2 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: |