BUG: use isinstance

This commit is contained in:
Jean Bredeche
2017-04-24 17:06:26 -04:00
parent 88fc696398
commit bed00a1b77
+1 -1
View File
@@ -384,7 +384,7 @@ class PerformancePeriod(object):
"""
Calculates the cash flow from executing the given transaction
"""
if txn.asset is Future:
if isinstance(txn.asset, Future):
return 0.0
return -1 * txn.price * txn.amount