From fbf3b78acebc61d97b96a2cdd9634a83bee0dded Mon Sep 17 00:00:00 2001 From: mkosmach Date: Fri, 25 Apr 2014 02:44:51 -0700 Subject: [PATCH] add simplejson as alternative to json --- library/packaging/apt_rpm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/library/packaging/apt_rpm b/library/packaging/apt_rpm index 0eca3132224..a85c528a239 100755 --- a/library/packaging/apt_rpm +++ b/library/packaging/apt_rpm @@ -60,7 +60,11 @@ EXAMPLES = ''' ''' -import json +try: + import json +except ImportError: + import simplejson as json + import shlex import os import sys