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

Deprecate the scrapy.utils.gz.is_gzipped function #3718

Merged
merged 1 commit into from
Apr 3, 2019

Conversation

Gallaecio
Copy link
Member

@Gallaecio Gallaecio commented Apr 2, 2019

The function seems to be no longer used.

I suspect its usage has been replaced by the inspecting the actual response bodies, which is more reliable than trusting headers.

@codecov
Copy link

codecov bot commented Apr 2, 2019

Codecov Report

Merging #3718 into master will increase coverage by 0.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #3718      +/-   ##
==========================================
+ Coverage   84.88%   84.89%   +0.01%     
==========================================
  Files         168      168              
  Lines        9520     9521       +1     
  Branches     1418     1418              
==========================================
+ Hits         8081     8083       +2     
  Misses       1184     1184              
+ Partials      255      254       -1
Impacted Files Coverage Δ
scrapy/utils/gz.py 100% <100%> (ø) ⬆️
scrapy/utils/trackref.py 86.48% <0%> (+2.7%) ⬆️

@kmike
Copy link
Member

kmike commented Apr 3, 2019

A great catch, thanks @Gallaecio!

@kmike kmike added this to the v1.7 milestone Apr 3, 2019
@kmike kmike merged commit c2d8f6f into scrapy:master Apr 3, 2019
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.

None yet

2 participants