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

safe_url_string, canonicalize_url: apply stripping from the URL living standard #207

Merged
merged 5 commits into from
Dec 6, 2022

Conversation

Gallaecio
Copy link
Member

No description provided.

@codecov
Copy link

codecov bot commented Nov 28, 2022

Codecov Report

Merging #207 (7ecd6d0) into master (a6e8c8d) will increase coverage by 0.02%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #207      +/-   ##
==========================================
+ Coverage   96.14%   96.16%   +0.02%     
==========================================
  Files           8        8              
  Lines         493      496       +3     
  Branches       92       93       +1     
==========================================
+ Hits          474      477       +3     
  Misses          9        9              
  Partials       10       10              
Impacted Files Coverage Δ
w3lib/url.py 98.70% <100.00%> (+0.01%) ⬆️

Copy link
Member

@kmike kmike left a comment

Choose a reason for hiding this comment

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

Looks good, thanks @Gallaecio!

Would it make sense to update safe_url_string docstring? It's no longer only tabs and newlines which are removed.

w3lib/url.py Outdated Show resolved Hide resolved
@Gallaecio
Copy link
Member Author

Gallaecio commented Nov 29, 2022

Is 288caae OK? It describes more what the functions should (in my opinion) do than what they actually do.

w3lib/url.py Outdated Show resolved Hide resolved
w3lib/url.py Outdated Show resolved Hide resolved
@Gallaecio Gallaecio requested a review from kmike December 6, 2022 11:03
@kmike
Copy link
Member

kmike commented Dec 6, 2022

Thanks @Gallaecio!

@kmike kmike merged commit 701fe7d into scrapy:master Dec 6, 2022
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.

3 participants