qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kgiu...@apache.org
Subject svn commit: r1614334 - /qpid/trunk/qpid/extras/qmf/src/py/qmf/console.py
Date Tue, 29 Jul 2014 13:09:29 GMT
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


Mime
View raw message