From 5a0e86c6d4ffe3242d717450da98de36896daaea Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Mon, 6 May 2013 17:24:52 -0400 Subject: [PATCH] zephyr_mirror: Use json if simplejson is not available. (imported from commit 4b5f6ff71067cd2697c864c715afbb3b9dd19302) --- bots/zephyr_mirror_backend.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bots/zephyr_mirror_backend.py b/bots/zephyr_mirror_backend.py index 7a39cc8..38a8deb 100755 --- a/bots/zephyr_mirror_backend.py +++ b/bots/zephyr_mirror_backend.py @@ -22,7 +22,10 @@ # SOFTWARE. import sys -import simplejson +try: + import simplejson +except ImportError: + import json as simplejson import re import time import subprocess