Skip to content

Commit

Permalink
Merge pull request #5 from ekohl/master
Browse files Browse the repository at this point in the history
Prefer simplejson over json
  • Loading branch information
gescheit committed Nov 23, 2011
2 parents aac81e4 + 19f1834 commit 551529b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions zabbix/zabbix_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@
__logger.log(10,"Starting logging")

try:
# Python 2.5+
import json
__logger.log(15,"Using native json library")
except ImportError:
# Python 2.4
# Separate module or Python <2.6
import simplejson as json
__logger.log(15,"Using simplejson library")
except ImportError:
# Python >=2.6
import json
__logger.log(15,"Using native json library")

class ZabbixAPIException(Exception):
""" generic zabbix api exception
Expand Down

0 comments on commit 551529b

Please sign in to comment.