enhance BigDecimal deprecation message suppression
When BigDecimal.new is called without keyword arguments pass along only the *arg list.GSoC/Meterpreter_Web_Console
parent
a3d0c93ff7
commit
087d653cd0
|
@ -20,6 +20,7 @@ require 'backports'
|
|||
require 'bigdecimal'
|
||||
|
||||
def BigDecimal.new(*args, **kwargs)
|
||||
return BigDecimal(*args) if kwargs.empty?
|
||||
BigDecimal(*args, **kwargs)
|
||||
end
|
||||
# Remove bigdecimal warning - end
|
||||
|
|
Loading…
Reference in New Issue