diff options
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: |