@@ -63,10 +63,10 @@ def OnData(self, data):
6363
6464 aaa = self .Securities ["AAA" ];
6565 if aaa .IsDelisted and aaa .IsTradable :
66- raise Exception ("Delisted security must NOT be tradable" );
66+ raise Exception ("Delisted security must NOT be tradable" )
6767
6868 if not aaa .IsDelisted and not aaa .IsTradable :
69- raise Exception ("Securities must be marked as tradable until they're delisted or removed from the universe" );
69+ raise Exception ("Securities must be marked as tradable until they're delisted or removed from the universe" )
7070
7171 for kvp in data .Delistings :
7272 symbol = kvp .Key
@@ -76,13 +76,13 @@ def OnData(self, data):
7676 self .Log ("OnData(Delistings): {0}: {1} will be delisted at end of day today." .format (self .Time , symbol ))
7777
7878 # liquidate on delisting warning
79- self .SetHoldings (symbol , 0 );
79+ self .SetHoldings (symbol , 0 )
8080
8181 if value .Type == DelistingType .Delisted :
8282 self .Log ("OnData(Delistings): {0}: {1} has been delisted." .format (self .Time , symbol ))
8383
8484 # fails because the security has already been delisted and is no longer tradable
85- self .SetHoldings (symbol , 1 );
85+ self .SetHoldings (symbol , 1 )
8686
8787
8888 def OnOrderEvent (self , orderEvent ):
0 commit comments