diff options
| author | Julian Andres Klode <jak@debian.org> | 2014-01-06 12:17:44 +0100 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2014-01-06 12:21:28 +0100 |
| commit | d95a8f27774842beb43bda54c4c61b67fe76a032 (patch) | |
| tree | 2db8a964a440fb7d19759b39c7cd0de5b5b7c803 /doc/examples | |
| parent | 3bf9c3fe4d19ed4d985dc8b7747a737699f46a7e (diff) | |
| download | python-apt-d95a8f27774842beb43bda54c4c61b67fe76a032.tar.gz | |
Style fix: Do not use "is True" / "is False"
This is uncommon style. It's better to use "pred" instead of "pred is True"
and "not pred" instead of "pred is False".
Diffstat (limited to 'doc/examples')
| -rw-r--r-- | doc/examples/acquire.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/examples/acquire.py b/doc/examples/acquire.py index 1971ba2f..942d0686 100644 --- a/doc/examples/acquire.py +++ b/doc/examples/acquire.py @@ -66,7 +66,7 @@ for item in fetcher.items: print item if item.status == item.STAT_ERROR: print "Some error ocured: '%s'" % item.error_text - if item.complete is False: + if not item.complete: print "No error, still nothing downloaded (%s)" % item.error_text print |
