Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorChris Dent <chris.dent@gmail.com>2013-01-15 02:24:30 +0400
committerBen Noordhuis <info@bnoordhuis.nl>2013-01-15 12:34:07 +0400
commit6b4a93577b5677f9738f6dd7d7acd71f86f46888 (patch)
tree2e17991652910e12a05ddaef680bcb2a45aba3b8 /tools
parenta6b8f63660c3f5ee50b2625f7a86f03fbe45ec12 (diff)
install: add simplejson fallback
Make tools/install.py work with python 2.5 2.5 is still fairly widespread and does not include a json lib as standard. Most python folk will have simplejson if they are in that boat. In general it seems a bit tricky to solve this perfectly...
Diffstat (limited to 'tools')
-rwxr-xr-xtools/install.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/install.py b/tools/install.py
index 51b7911cc9e..8ff7c395fbb 100755
--- a/tools/install.py
+++ b/tools/install.py
@@ -1,7 +1,12 @@
#!/usr/bin/env python
import errno
-import json
+
+try:
+ import json
+except ImportError:
+ import simplejson as json
+
import os
import re
import shutil