summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Wilk <jwilk@jwilk.net>2016-05-25 21:44:33 +0200
committerJakub Wilk <jwilk@jwilk.net>2016-05-25 21:44:33 +0200
commit481c233ffe07c13ff164bb4ce25e6791ec3e1494 (patch)
tree6ca1ecc394c8e9d0c4da5b7fb72647ed98a52e41
parenta8f1c782763d1c43e4804733354857c76e3b7b0b (diff)
downloadpep8-481c233ffe07c13ff164bb4ce25e6791ec3e1494.tar.gz
Fix grammar
"allow" is a transitive verb, which requires an object, so "allow to <verb>" is ungrammatical.
-rw-r--r--CHANGES.txt6
-rwxr-xr-xpep8.py2
2 files changed, 4 insertions, 4 deletions
diff --git a/CHANGES.txt b/CHANGES.txt
index d25315a..d22214f 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -350,7 +350,7 @@ Bug fixes:
* Initiate a graceful shutdown on ``Control+C``.
-* Allow to change the ``checker_class`` for the ``StyleGuide``.
+* Allow changing the ``checker_class`` for the ``StyleGuide``.
1.4.2 (2013-02-10)
@@ -360,7 +360,7 @@ Bug fixes:
* Register new checkers with ``register_check(func_or_cls, codes)``.
-* Allow to construct a ``StyleGuide`` with a custom parser.
+* Allow constructing a ``StyleGuide`` with a custom parser.
* Accept visual indentation without parenthesis after the ``if``
statement. (Issue #151)
@@ -569,7 +569,7 @@ Bug fixes:
The ``--repeat`` flag becomes obsolete because it is the default
behaviour. (Issue #6)
-* Allow to specify ``--max-line-length``. (Issue #36)
+* Allow specifying ``--max-line-length``. (Issue #36)
* Make the shebang more flexible. (Issue #26)
diff --git a/pep8.py b/pep8.py
index 0d329f3..207af15 100755
--- a/pep8.py
+++ b/pep8.py
@@ -582,7 +582,7 @@ def continued_indentation(logical_line, tokens, indent_level, hang_closing,
break
assert len(indent) == depth + 1
if start[1] not in indent_chances:
- # allow to line up tokens
+ # allow lining up tokens
indent_chances[start[1]] = text
last_token_multiline = (start[0] != end[0])