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

Unified Diff: tools/json_schema_compiler/json_parse.py

Issue 11413090: Disable the Python < 2.7 warning in JSON Schema Compiler. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
« 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: tools/json_schema_compiler/json_parse.py
diff --git a/tools/json_schema_compiler/json_parse.py b/tools/json_schema_compiler/json_parse.py
index 7c5bff84d6c780b7265047b9d8ca1f35d3a3a1f7..7ac1ff2dfd76f4a2107031cd64030a54933248fc 100644
--- a/tools/json_schema_compiler/json_parse.py
+++ b/tools/json_schema_compiler/json_parse.py
@@ -28,8 +28,11 @@ try:
except ImportError:
# Failed to import, so we're running Python < 2.7, and json.loads doesn't
# support object_pairs_hook. simplejson however does, but it's slow.
- logging.warning('Using simplejson to parse, this might be slow! Upgrade to '
- 'Python 2.7.')
+ #
+ # TODO(cduvall/kalman): Refuse to start the docs server in this case, but
+ # let json-schema-compiler do its thing.
+ #logging.warning('Using simplejson to parse, this might be slow! Upgrade to '
+ # 'Python 2.7.')
_SYS_PATH = sys.path[:]
try:
« 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