Permalink
Browse files

pyfpm: compatible with Python 2.5 + Lenny's python-json

  • Loading branch information...
pcarrier committed Jul 25, 2011
1 parent 0a4126d commit 763ba673e3d207bcb57bba09c7efb7ce620efc60
Showing with 6 additions and 1 deletion.
  1. +6 −1 lib/fpm/source/pyfpm/get_metadata.py
@@ -83,6 +83,11 @@ def run(self):
data["dependencies"] = final_deps
#print json.dumps(data, indent=2)
- print json.dumps(data, indent=2)
+ try:
+ print json.dumps(data, indent=2)
+ except AttributeError, e:
+ # For Python 2.5 and Debian's python-json
+ print json.write(data)
+
# def run
# class list_dependencies

0 comments on commit 763ba67

Please sign in to comment.