Skip to content
Browse files

Don't compare to True or False.

Despite my hopes that such comparison might be better in some cases, I
am hereby removing it.
  • Loading branch information...
1 parent d9ac130 commit 46aef91a849b2c07e51d538d6c0439e8bed0ef2f @scolobb committed Jun 12, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 sympy/categories/
2 sympy/categories/
@@ -697,7 +697,7 @@ def _add_morphism(morphisms, morphism, props, add_identities=True):
identity morphisms for the domain and the codomain of
- if Diagram._set_dict_union(morphisms, morphism, props) == False:
+ if not Diagram._set_dict_union(morphisms, morphism, props):
# We have just added a new morphism.
if morphism.is_identity:

0 comments on commit 46aef91

Please sign in to comment.
Something went wrong with that request. Please try again.