Use frozenset more consistently

This commit is contained in:
Sei Lisa 2020-11-09 02:06:37 +01:00
parent d9938f1a37
commit 4fd4bf71aa
6 changed files with 23 additions and 23 deletions

View file

@ -34,9 +34,9 @@ class optimizer(foldconst, renamer, deadcode, lastpass):
}
# explicitly exclude assignments
binary_ops = frozenset(('+','-','*','/','%','<<','>>','<','<=','>','>=',
'==','!=','|','^','&','||','&&'))
assign_ops = frozenset(('=','+=','-=','*=','/=','%=','&=','|=','^=','<<=','>>='))
binary_ops = frozenset({'+','-','*','/','%','<<','>>','<','<=','>','>=',
'==','!=','|','^','&','||','&&'})
assign_ops = frozenset({'=','+=','-=','*=','/=','%=','&=','|=','^=','<<=','>>='})
def Cast(self, value, newtype):
"""Return a CAST node if the types are not equal, otherwise the