Skip to content

Commit

Permalink
small idiomatic correction
Browse files Browse the repository at this point in the history
Because None-types are singletons, we should use identity, generally.
  • Loading branch information
maxcountryman committed Jan 15, 2013
1 parent b44c489 commit eb3fc01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flask_classy.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def register(cls, app, route_base=None, subdomain=None):
cls.route_base = route_base

if not subdomain:
if hasattr(app, "subdomain") and app.subdomain != None:
if hasattr(app, "subdomain") and app.subdomain is not None:
subdomain = app.subdomain
elif hasattr(cls, "subdomain"):
subdomain = cls.subdomain
Expand Down

0 comments on commit eb3fc01

Please sign in to comment.