diff options
| author | Georg Brandl <georg@python.org> | 2006-06-09 20:43:48 +0000 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2006-06-09 20:43:48 +0000 |
| commit | b2afe855e5d75a570707d6bf0e32206e4b7b1c4d (patch) | |
| tree | b637a7e78de40cf155c471e702e9b465fcd0625d /Lib/_MozillaCookieJar.py | |
| parent | 3ebef999e60cc63baafcdcfa0fd05c063715a66c (diff) | |
| download | cpython-git-b2afe855e5d75a570707d6bf0e32206e4b7b1c4d.tar.gz | |
Make use of new str.startswith/endswith semantics.
Occurences in email and compiler were ignored due to backwards compat requirements.
Diffstat (limited to 'Lib/_MozillaCookieJar.py')
| -rw-r--r-- | Lib/_MozillaCookieJar.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/_MozillaCookieJar.py b/Lib/_MozillaCookieJar.py index 1776b930f6..4fd6de32cb 100644 --- a/Lib/_MozillaCookieJar.py +++ b/Lib/_MozillaCookieJar.py @@ -63,8 +63,7 @@ class MozillaCookieJar(FileCookieJar): if line.endswith("\n"): line = line[:-1] # skip comments and blank lines XXX what is $ for? - if (line.strip().startswith("#") or - line.strip().startswith("$") or + if (line.strip().startswith(("#", "$")) or line.strip() == ""): continue |
