Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix deprecation of quadgk to allow kwargs #19783

Merged
merged 1 commit into from
Dec 31, 2016

Conversation

ararslan
Copy link
Member

The deprecation of quadgk introduced in #19741 inadvertently omitted keyword arguments from the function signature. This PR corrects that.

@tkelman
Copy link
Contributor

tkelman commented Dec 30, 2016

not worth waiting for appveyor here, thanks

@@ -1341,7 +1341,7 @@ end
@deprecate xor(A::AbstractArray, B::AbstractArray) xor.(A, B)

# QuadGK moved to a package (#19741)
function quadgk(args...)
function quadgk(args...; kwargs...)
error(string(quadgk, args, " has been moved to the package QuadGK.jl.\n",
Copy link
Contributor

@tkelman tkelman Dec 30, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm a little surprised this somehow puts parens around the arguments like you'd want it to

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know, I was surprised too. I copied that from another deprecation. I guess it's just because args is a tuple and calling string on a tuple gives it parens.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh right

@tkelman tkelman merged commit ce743d2 into JuliaLang:master Dec 31, 2016
@ararslan ararslan deleted the aa/fix-quadgk-dep branch December 31, 2016 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants