prune everything about aspects that is python2 and too tedious to port
[plcapi.git] / PLC / Methods / DeleteSession.py
index 545adfd..3898f51 100644 (file)
@@ -16,10 +16,11 @@ class DeleteSession(Method):
     accepts = [SessionAuth()]
     returns = Parameter(int, '1 if successful')
 
+
     def call(self, auth):
         assert auth.has_key('session')
 
-        sessions = Sessions(self.api, [auth['session']]).values()
+        sessions = Sessions(self.api, [auth['session']])
         if not sessions:
             raise PLCAPIError, "No such session"
         session = sessions[0]