Skip to content
This repository was archived by the owner on May 17, 2019. It is now read-only.

include Julia 0.5 in tests, remove depwarns - #142

Merged
quinnj merged 2 commits into
masterfrom
tan/depwarn
Dec 8, 2016
Merged

include Julia 0.5 in tests, remove depwarns#142
quinnj merged 2 commits into
masterfrom
tan/depwarn

Conversation

@tanmaykm

@tanmaykm tanmaykm commented Dec 7, 2016

Copy link
Copy Markdown
Member
  • include Julia 0.5 in travis tests
  • remove depwarns

Comment thread src/Requests.jl Outdated
if VERSION >= v"0.5.0-dev+4817"
import Base: view
end

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

is there not a Compat for this?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

There is this in Compat:

if !isdefined(Base, :view)
    const view = slice
end

But isn't import is still required, since Requests also defines view?

@codecov-io

codecov-io commented Dec 7, 2016

Copy link
Copy Markdown

Current coverage is 71.56% (diff: 100%)

Merging #142 into master will increase coverage by 0.74%

@@             master       #142   diff @@
==========================================
  Files             4          4          
  Lines           514        517     +3   
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
+ Hits            364        370     +6   
+ Misses          150        147     -3   
  Partials          0          0          

Powered by Codecov. Last update c368db5...a5da661

Comment thread src/multipart.jl Outdated
if VERSION < v"0.5.0-dev+4817"
write(stream,sub(file.data,(position(file)+1):(position(file)+nb_available(file))))
else
write(stream,view(file.data,(position(file)+1):(position(file)+nb_available(file))))

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

You can just say Base.view here instead. The view definition in Requests isn't meant to be exported anyway. Then we can get rid of the import above.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

okay, shall update

@tanmaykm

tanmaykm commented Dec 8, 2016

Copy link
Copy Markdown
Member Author

@quinnj review comments incorporated

@quinnj
quinnj merged commit 56329cd into master Dec 8, 2016
@quinnj
quinnj deleted the tan/depwarn branch December 8, 2016 04:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants