Package: python-facebook
Version: 0.svn20100209-2.1
Severity: important
Tags: patch

Hello,

Despite the fact that python-facebook suggests python-json, its support for JSON breaks (for Python < 2.6) if the latter package is installed. This is because python-json provides different API than python-facebook expects.

The attached (not very well tested) patch should fix this bug.

--
Jakub Wilk
diff -u python-facebook-0.svn20100209/debian/control python-facebook-0.svn20100209/debian/control
--- python-facebook-0.svn20100209/debian/control
+++ python-facebook-0.svn20100209/debian/control
@@ -12,5 +12,5 @@
 XB-Python-Version: ${python:Versions}
 Provides: ${python:Provides}
-Suggests: python-json
+Suggests: python (>= 2.6) | python-simplejson
 Description: Python wrappers for the Facebook API
  PyFacebook is a thin wrapper for accessing Facebook's API through Python.
only in patch2:
unchanged:
--- python-facebook-0.svn20100209.orig/facebook/__init__.py
+++ python-facebook-0.svn20100209/facebook/__init__.py
@@ -62,7 +62,8 @@
 RESPONSE_FORMAT = 'JSON'
 try:
     import json as simplejson
-except ImportError:
+    simplejson.dumps
+except (ImportError, AttributeError):
     try:
         import simplejson
     except ImportError:

Attachment: signature.asc
Description: Digital signature

Reply via email to