Checking for None by identitymaster
commit69f72efc9367092c989819bb2e408598ecc9dcdb
authorDamian Johnson <atagar@torproject.org>
Tue, 4 Dec 2012 16:37:59 +0000 (4 08:37 -0800)
committerDamian Johnson <atagar@torproject.org>
Tue, 4 Dec 2012 16:37:59 +0000 (4 08:37 -0800)
tree5394d88e5b188a0213d94dafb1c745446976e1b3
parentd50b8a06744a8476bc16c04268fef75b20712b2b
Checking for None by identity

According to PEP 290 comparisons to None should be done via identity (the 'is'
keyword):

http://www.python.org/dev/peps/pep-0290/#testing-for-none

I had already been doing this, albeit inconsistently. Inequality checks were
still using '!=' - swapping all None comparisons to be by identity.
run_tests.py
stem/control.py
stem/descriptor/__init__.py
stem/descriptor/server_descriptor.py
stem/exit_policy.py
stem/response/events.py
stem/util/conf.py
test/integ/control/controller.py
test/output.py
test/runner.py