Skip to content

Remove pickle, minor variable rename #1924

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jpool-nv
Copy link
Contributor

@jpool-nv jpool-nv commented Aug 5, 2025

Removing pickle usage to avoid security issue.

Removing pickle usage to avoid security issue.
Copy link
Collaborator

@Aidyn-A Aidyn-A left a comment

Choose a reason for hiding this comment

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

LGTM.

@crcrpar, what do you think?

Comment on lines 67 to 70
cache_dir_path = ASP_CACHE_DIR_DEFAULT
# The user is allowed to set the cache directory via an environment variable.
if environ.get(ASP_CACHE_DIR_ENV_VAR) is not None:
cache_dir_path = environ.get(ASP_CACHE_DIR_ENV_VAR)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Overall looks good to me. I would also recommend to use getenv instead of environ.get to reduce lines.

Suggested change
cache_dir_path = ASP_CACHE_DIR_DEFAULT
# The user is allowed to set the cache directory via an environment variable.
if environ.get(ASP_CACHE_DIR_ENV_VAR) is not None:
cache_dir_path = environ.get(ASP_CACHE_DIR_ENV_VAR)
cache_dir_path = os.getenv(ASP_CACHE_DIR_ENV_VAR, ASP_CACHE_DIR_DEFAULT)

Copy link
Collaborator

@crcrpar crcrpar left a comment

Choose a reason for hiding this comment

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

this looks very nice to me

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