The json module is available in version 2.6 but we have simplejson in 2.5.
Signed-off-by: Torsten Werner <twerner@debian.org>
import psycopg2
import traceback
import commands
-import json
+
+try:
+ # python >= 2.6
+ import json
+except:
+ # python <= 2.5
+ import simplejson as json
+
from datetime import datetime, timedelta
from errno import ENOENT
from tempfile import mkstemp, mkdtemp
from daklib.dbconn import Architecture, Suite
-import json
+try:
+ # python >= 2.6
+ import json
+except:
+ # python <= 2.5
+ import simplejson as json
+
import re
import unittest