You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by kg...@apache.org on 2014/07/29 15:09:29 UTC

svn commit: r1614334 - /qpid/trunk/qpid/extras/qmf/src/py/qmf/console.py

Author: kgiusti
Date: Tue Jul 29 13:09:28 2014
New Revision: 1614334

URL: http://svn.apache.org/r1614334
Log:
QPID-5932: tweak patch to support older versions of python.

Modified:
    qpid/trunk/qpid/extras/qmf/src/py/qmf/console.py

Modified: qpid/trunk/qpid/extras/qmf/src/py/qmf/console.py
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/extras/qmf/src/py/qmf/console.py?rev=1614334&r1=1614333&r2=1614334&view=diff
==============================================================================
--- qpid/trunk/qpid/extras/qmf/src/py/qmf/console.py (original)
+++ qpid/trunk/qpid/extras/qmf/src/py/qmf/console.py Tue Jul 29 13:09:28 2014
@@ -1509,7 +1509,9 @@ class Session:
     Methods are now invoked on the object itself.
     """
     objs = self.getObjects(_objectId=objectId)
-    return objs[0]._sendMethodRequest(name, argList, {}) if objs else None
+    if objs:
+      return objs[0]._sendMethodRequest(name, argList, {})
+    return None
 
   def _newPackageCallback(self, pname):
     """



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org