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 incorrect namespace used for caching function returns #258

Merged
merged 4 commits into from
Apr 11, 2022

Conversation

nicholas-plutoflume
Copy link
Contributor

This PR fixes #257.

Currently, the namespace is not passed to the function that sets the cache, and instead the literal "urls" is passed. As a result, non-url related functions, such as the function to cache the public suffixes were not cached.

This PR fixes this by using the namespace argument which is passed in to the run_and_cache function, and adds a regression test.

@nicholas-plutoflume nicholas-plutoflume changed the title Fixed incorrect namespace used for caching function returns Fix incorrect namespace used for caching function returns Mar 17, 2022
@john-kurkowski
Copy link
Owner

(Rebased)

@john-kurkowski
Copy link
Owner

Thanks for the thorough PR and discussion!

@john-kurkowski john-kurkowski merged commit cdeec76 into john-kurkowski:master Apr 11, 2022
bmwiedemann pushed a commit to bmwiedemann/openSUSE that referenced this pull request Jun 16, 2022
https://build.opensuse.org/request/show/982862
by user mia + dimstar_suse
- Update to 3.3.0
Features
  * Add CLI flag `--suffix_list_url` to set the suffix list URL(s)
    or source file(s)
    (#gh/john-kurkowski/tldextract#197)
  * Add CLI flag `--no_fallback_to_snapshot` to not fall back to
    the snapshot
    (#gh/john-kurkowski/tldextract#260)
  * Add alias `--include_psl_private_domains` for CLI flag
    `--private_domains`
Bugfixes
  * Handle more internationalized domain name dots
    (#gh/john-kurkowski/tldextract#253)
Misc.
  * Update bundled snapshot
  * Add basic CLI test coverage
Changes in 3.2.1:
Bugfixes
  * Fix incorrect namespace used for caching function returns
    (#gh/john-kurkowski/tldextract#258)
Changes in 3.2.0:
Features
  * Add types to the public API
    (#gh/john-kurkowski/tldextract#244)
Bugfixes
    * Add support for Python 3.10, dr
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.

"update" caches public suffix list to wrong directory
2 participants