Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2879)

Unified Diff: appengine/config_service/projects.py

Issue 2934783004: config_service: use == for sentinel value (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/config_service/projects.py
diff --git a/appengine/config_service/projects.py b/appengine/config_service/projects.py
index 7b402b8eeaf1c6dbb884d0f974e978c67309c526..8cacefb8ab1c20d6c15ced83e5daf2d1c25b79b2 100644
--- a/appengine/config_service/projects.py
+++ b/appengine/config_service/projects.py
@@ -115,7 +115,7 @@ def get_metadata_async(project_ids):
binary = cache_futs[pid].get_result()
if binary is not None:
# cache hit
- if binary is PROJECT_DOES_NOT_EXIST_SENTINEL:
+ if binary == PROJECT_DOES_NOT_EXIST_SENTINEL:
result[pid] = None
else:
cfg = project_config_pb2.ProjectCfg()
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698