summaryrefslogtreecommitdiff
path: root/Lib/keyword.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2004-05-04 09:21:43 +0000
committerRaymond Hettinger <python@rcn.com>2004-05-04 09:21:43 +0000
commit3215dbb7e00c40db867c7d85945df59d5f34022a (patch)
tree29b12069d9e9404bd4e50b2c5bcf3ad1549e2b5c /Lib/keyword.py
parent767b31f620873f9251ea6020c9140f451837104e (diff)
downloadcpython-3215dbb7e00c40db867c7d85945df59d5f34022a.tar.gz
Replace str.find()!=1 with the more readable "in" operator.
Diffstat (limited to 'Lib/keyword.py')
-rwxr-xr-xLib/keyword.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/keyword.py b/Lib/keyword.py
index a0295e2139..223a88a9de 100755
--- a/Lib/keyword.py
+++ b/Lib/keyword.py
@@ -63,7 +63,7 @@ def main():
while 1:
line = fp.readline()
if not line: break
- if line.find('{1, "') > -1:
+ if '{1, "' in line:
match = strprog.search(line)
if match:
lines.append(" '" + match.group(1) + "',\n")