Considered faster according to:
http://stackoverflow.com/questions/712791/json-and-simplejson-module-differences-in-python
http://stackoverflow.com/questions/706101/python-json-decoding-performance
As a side-effect, it might make irker work under Python versions older than 2.6.
Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
CONNECTION_MAX = 200
green_threads = False
-import sys, json, getopt, urlparse, time, random
+import sys, getopt, urlparse, time, random
import threading, Queue, SocketServer
import irc.client, logging
+try: import simplejson as json
+except ImportError: import json
version = "1.5"
# No user-serviceable parts below this line:
#
-import os, sys, commands, socket, urllib, json
+import os, sys, commands, socket, urllib
from pipes import quote as shellquote
+try: import simplejson as json
+except ImportError: import json
version = "1.5"