X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=ud-sync-accounts-to-afs;h=4fccaa9d4fc35e35f0bdeaeb6f7e049c05aa6d6f;hb=8276dbab194cd5ca492345a30fc370597dfa2946;hp=6ce93ef6be9ce48a4c5a57a835f45e7c437023ed;hpb=e14c30b4b7a7db4a5b88f624d154781881d50228;p=mirror%2Fuserdir-ldap.git diff --git a/ud-sync-accounts-to-afs b/ud-sync-accounts-to-afs index 6ce93ef..4fccaa9 100755 --- a/ud-sync-accounts-to-afs +++ b/ud-sync-accounts-to-afs @@ -18,11 +18,10 @@ import sys import tempfile -import json -if not '__author__' in json.__dict__: - sys.stderr.write("Warning: This is probably the wrong json module. We want python 2.6's json\n") - sys.stderr.write("module, or simplejson on python 2.5. Let's see if/how stuff blows up.\n") +try: import simplejson as json +except ImportError: + import json # this better be pthon 2.6's json.. class UserEntries: def __init__(self):