[Pkg-debile-commits] [debile-master] 01/01: Revert "flake8 is wrongly suggesting to replace '== None' by 'is None'"
Paul Richards Tagliamonte
paultag at alioth.debian.org
Fri Sep 20 01:32:31 UTC 2013
This is an automated email from the git hooks/post-receive script.
paultag pushed a commit to branch master
in repository debile-master.
commit bb94c54903966237bd92a094f8b3c351f2a2ef1b
Author: Paul Tagliamonte <tag at pault.ag>
Date: Thu Sep 19 21:44:03 2013 -0400
Revert "flake8 is wrongly suggesting to replace '== None' by 'is None'"
This reverts commit ceb4d39608fb4b4f38c62b5f8a789194f33c8959.
Goddamnit, lies!
/
| A class is free to implement comparison any way it chooses, and it can
| choose to make comparison against None mean something (which actually
| makes sense; if someone told you to implement the None object from
| scratch, how else would you get it to compare True against itself?).
\
---
debilemaster/server.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/debilemaster/server.py b/debilemaster/server.py
index c58794c..f4f99f0 100644
--- a/debilemaster/server.py
+++ b/debilemaster/server.py
@@ -349,8 +349,8 @@ class DebileMasterInterface(object):
session = Session()
j = session.query(Job).\
- filter(Job.assigned_at == None).\
- filter(Job.machine == None).\
+ filter(Job.assigned_at is None).\
+ filter(Job.machine is None).\
filter(Job.type.in_(types)).\
filter(Job.arch.in_(arches)).\
filter(Job.suite.in_(suites)).\
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-debile/debile-master.git
More information about the Pkg-debile-commits
mailing list