Skip to content
This repository has been archived by the owner on Nov 11, 2021. It is now read-only.

Do not use "is" #25

Closed
klahnakoski opened this issue Nov 21, 2017 · 0 comments
Closed

Do not use "is" #25

klahnakoski opened this issue Nov 21, 2017 · 0 comments

Comments

@klahnakoski
Copy link
Contributor

This code will not do what you expect:

if mozobj['diff'] is []:

instead write

if not mozobj['diff']:
@natj212 natj212 closed this as completed Nov 23, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants