minimal hacks so that the PHP bindings can be built under FC2
[plcapi.git] / php / methods.py
index 27761a0..b41b1ba 100755 (executable)
@@ -5,7 +5,7 @@
 # Mark Huang <mlhuang@cs.princeton.edu>
 # Copyright (C) 2005 The Trustess of Princeton University
 #
-# $Id: methods.py,v 1.3 2006/11/21 20:00:53 mlhuang Exp $
+# $Id: methods.py,v 1.4 2006/11/29 19:43:17 mlhuang Exp $
 #
 
 import os, sys
@@ -15,6 +15,12 @@ from PLC.API import PLCAPI
 from PLC.Method import *
 from PLC.Auth import Auth
 
+try:
+    set
+except NameError:
+    from sets import Set
+    set = Set
+
 def php_cast(value):
     """
     Casts Python values to PHP values.