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

Unified Diff: rietveld.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 | « presubmit_support.py ('k') | subprocess2.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: rietveld.py
diff --git a/rietveld.py b/rietveld.py
index aafa24e7c4099bf931e64fb35efcab14d131fd3e..6fc5796323958b9c4ecf380d06e2eb51e7987fdf 100644
--- a/rietveld.py
+++ b/rietveld.py
@@ -13,23 +13,12 @@ The following hypothesis are made:
- A patch set cannot be modified
"""
+import json
import logging
-import os
import re
-import sys
import time
import urllib2
-try:
- import simplejson as json # pylint: disable=F0401
-except ImportError:
- try:
- import json # pylint: disable=F0401
- except ImportError:
- # Import the one included in depot_tools.
- 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 patch
« no previous file with comments | « presubmit_support.py ('k') | subprocess2.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698