Commit 85b0e12a authored by Faidon Liambotis's avatar Faidon Liambotis
Browse files

Use Python 2.6's json in util/rapi.py

This was fixed with a237869 but "broken" again via the pull of new RAPI
version from Ganeti (067dda9)
parent cb06dc86
...@@ -34,12 +34,16 @@ ...@@ -34,12 +34,16 @@
# be standalone. # be standalone.
import logging import logging
import simplejson
import socket import socket
import urllib import urllib
import threading import threading
import pycurl import pycurl
try:
import simplejson as json
except ImportError:
import json
try: try:
from cStringIO import StringIO from cStringIO import StringIO
except ImportError: except ImportError:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment