tools.calculation: replace deprecated ast.Num with ast.Constant
#2464
+29
−7
ast.Num with ast.Constant
#2464