Skip to content

Removing hard code entries #5965

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

Merged
merged 1 commit into from
Jul 5, 2023
Merged

Removing hard code entries #5965

merged 1 commit into from
Jul 5, 2023

Conversation

andersoncarlosfs
Copy link
Contributor

@andersoncarlosfs andersoncarlosfs commented Jul 5, 2023

Just removing hard code statements

scrapy_module = os.environ.get("SCRAPY_SETTINGS_MODULE")
if scrapy_module is not None:
scrapy_module = os.environ.get(ENVVAR)
if scrapy_module:
Copy link
Member

Choose a reason for hiding this comment

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

This is a change in behavior when the SCRAPY_SETTINGS_MODULE is set to an empty string. That said, an empty string cannot work here, so I guess it is fine and slightly improves readability, so +1 from me.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeaaaaah!!!! =]

@codecov
Copy link

codecov bot commented Jul 5, 2023

Codecov Report

Merging #5965 (94974f8) into master (b619630) will decrease coverage by 0.08%.
The diff coverage is 100.00%.

❗ Current head 94974f8 differs from pull request most recent head 7ce3d8f. Consider uploading reports for the commit 7ce3d8f to get more accurate results

@@            Coverage Diff             @@
##           master    #5965      +/-   ##
==========================================
- Coverage   89.19%   89.12%   -0.08%     
==========================================
  Files         162      162              
  Lines       11287    11287              
  Branches     1833     1833              
==========================================
- Hits        10067    10059       -8     
- Misses        928      934       +6     
- Partials      292      294       +2     
Impacted Files Coverage Δ
scrapy/utils/project.py 78.84% <100.00%> (ø)

... and 1 file with indirect coverage changes

@wRAR
Copy link
Member

wRAR commented Jul 5, 2023

Thanks!

@wRAR wRAR merged commit 8055a94 into scrapy:master Jul 5, 2023
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