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

Unified Diff: git_cl.py

Issue 10165007: Remove python 2.5 compatibility code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 8 years, 8 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 | « gcl.py ('k') | presubmit_canned_checks.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: git_cl.py
diff --git a/git_cl.py b/git_cl.py
index cf113b89b3372ca3d8b6ba66d2bdeaf068096d25..a111eac24f4d6c12147d0a6bfc35aab4ee979473 100755
--- a/git_cl.py
+++ b/git_cl.py
@@ -7,6 +7,7 @@
"""A git-command for integrating reviews on Rietveld."""
+import json
import logging
import optparse
import os
@@ -23,16 +24,6 @@ try:
except ImportError:
pass
-try:
- import simplejson as json # pylint: disable=F0401
-except ImportError:
- try:
- import json # pylint: disable=F0401
- except ImportError:
- # Fall back to the packaged version.
- sys.path.append(os.path.join(os.path.dirname(__file__), 'third_party'))
- import simplejson as json # pylint: disable=F0401
-
from third_party import upload
import breakpad # pylint: disable=W0611
« no previous file with comments | « gcl.py ('k') | presubmit_canned_checks.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698