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

Unified Diff: chrome/common/extensions/docs/server2/api_models.py

Issue 48263002: list apis by channel info, e.g. dev, stable (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 1 month 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
Index: chrome/common/extensions/docs/server2/api_models.py
diff --git a/chrome/common/extensions/docs/server2/api_models.py b/chrome/common/extensions/docs/server2/api_models.py
index e05f59d91acc1c6f54ab5508f0e79f72b5050409..ae5191368c2938cf35282f1ad392656553811d31 100644
--- a/chrome/common/extensions/docs/server2/api_models.py
+++ b/chrome/common/extensions/docs/server2/api_models.py
@@ -19,9 +19,9 @@ def _CreateAPIModel(path, data):
schema = ProcessSchema(path, data)
if os.path.splitext(path)[1] == '.json':
schema = schema[0]
+ if not schema: return None
not at google - send to devlin 2013/11/07 23:52:18 When does this happen? If the schema doesn't parse
hukun 2013/11/08 06:23:39 One example is "musicManagerPrivate". 1) Process
return Namespace(schema, schema['namespace'])
-
not at google - send to devlin 2013/11/07 23:52:18 Ppython style is still is actually to have 2 blank
hukun 2013/11/08 06:23:39 Done
class APIModels(object):
'''Tracks APIs and their Models.
'''

Powered by Google App Engine
This is Rietveld 408576698