# HG changeset patch # User Atul Varma # Date 1228991454 28800 # Node ID c14445b5eee020cb0f5a78c784c692b282b4ad9c # Parent 153412fe8bf230b4372edb72d6b51bd353f0b72f Fall back to simplejson for json operations if running Python 2.4 or 2.5. diff -r 153412fe8bf2 -r c14445b5eee0 hrm.py --- a/hrm.py Tue Dec 09 23:24:00 2008 -0800 +++ b/hrm.py Thu Dec 11 02:30:54 2008 -0800 @@ -64,12 +64,16 @@ import os import re import sys -import json import subprocess import distutils.dir_util import time from optparse import OptionParser +try: + import json +except ImportError: + import simplejson as json + # Number of hours that must pass before we purge removed files. HOURS_TO_PURGE = 48