summaryrefslogtreecommitdiff
path: root/paste/lint.py
diff options
context:
space:
mode:
authorcce <devnull@localhost>2005-12-30 00:46:34 +0000
committercce <devnull@localhost>2005-12-30 00:46:34 +0000
commit190a2253158d24da3261ce8d16f5323d2727794e (patch)
tree5a99c1c5e29d59160ddc425e862f4a55bb6e31f8 /paste/lint.py
parentce391abc1ca868814ebf6d705c28b1694c15f514 (diff)
downloadpaste-190a2253158d24da3261ce8d16f5323d2727794e.tar.gz
- off by one in lint.py
Diffstat (limited to 'paste/lint.py')
-rw-r--r--paste/lint.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/paste/lint.py b/paste/lint.py
index cfa475b..496ab6e 100644
--- a/paste/lint.py
+++ b/paste/lint.py
@@ -259,7 +259,7 @@ def check_status(status):
"Status codes must be three characters: %r" % status_code)
status_int = int(status_code)
assert status_int >= 100, "Status code is invalid: %r" % status_int
- if len(status) < 4 or status[4] != ' ':
+ if len(status) < 4 or status[3] != ' ':
warnings.warn(
"The status string (%r) should be a three-digit integer "
"followed by a single space and a status explanation"