Commit fba941d0 authored by Rafael Monnerat's avatar Rafael Monnerat

Import json if python supports it

Python 2.7 do not need simplejson
parent cd855a47
......@@ -32,7 +32,11 @@ __all__ = ["slap", "ComputerPartition", "Computer", "SoftwareRelease",
from interface import slap as interface
import httplib
import simplejson as json
try:
import json
except ImportError:
import simplejson as json
import socket
import ssl
import urllib
......
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