2to3 -f except
[sfa.git] / sfa / server / modpython / SfaSliceMgrModPython.py
index e0f2b92..dcb8562 100755 (executable)
@@ -9,13 +9,12 @@
 
 import sys
 import traceback
-import xmlrpclib
 from mod_python import apache
 
-from sfa.plc.api import SfaAPI
 from sfa.util.sfalogging import logger
+from sfa.planetlab.server import SfaApi
 
-api = SfaAPI(interface='slicemgr')
+api = SfaApi(interface='slicemgr')
 
 def handler(req):
     try:
@@ -51,7 +50,7 @@ def handler(req):
 
         return apache.OK
 
-    except Exception, err:
+    except Exception as err:
         # Log error in /var/log/httpd/(ssl_)?error_log
         logger.log_exc('%r'%err)
         return apache.HTTP_INTERNAL_SERVER_ERROR