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'
|
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
|
||||||
|
|
Loading…
Reference in New Issue