enhance BigDecimal deprecation message suppression

When BigDecimal.new is called without keyword arguments
pass along only the *arg list.
GSoC/Meterpreter_Web_Console
Jeffrey Martin 2019-02-21 21:43:51 -06:00
parent a3d0c93ff7
commit 087d653cd0
No known key found for this signature in database
GPG Key ID: 0CD9BBC2AF15F171
1 changed files with 1 additions and 0 deletions

View File

@ -20,6 +20,7 @@ require 'backports'
require 'bigdecimal' require 'bigdecimal'
def BigDecimal.new(*args, **kwargs) def BigDecimal.new(*args, **kwargs)
return BigDecimal(*args) if kwargs.empty?
BigDecimal(*args, **kwargs) BigDecimal(*args, **kwargs)
end end
# Remove bigdecimal warning - end # Remove bigdecimal warning - end