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

breaking: use shlex.quote to quote shell commands #1396

Merged
merged 1 commit into from
Nov 10, 2023

Conversation

njzjz
Copy link
Member

@njzjz njzjz commented Nov 9, 2023

Single quotes (') can be automatically escaped. One does not need to escape single quotes in command manually anymore.

To those who have escaped single quotes in command manually, this is a breaking change.

@njzjz njzjz changed the title use Python built-in method to quote shell commands breaking: use Python built-in method to quote shell commands Nov 9, 2023
@njzjz njzjz changed the title breaking: use Python built-in method to quote shell commands breaking: use shlex.quote to quote shell commands Nov 9, 2023
Copy link

codecov bot commented Nov 9, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (f0cf347) 48.98% compared to head (aa916e1) 48.98%.

Additional details and impacted files
@@           Coverage Diff           @@
##            devel    #1396   +/-   ##
=======================================
  Coverage   48.98%   48.98%           
=======================================
  Files          83       83           
  Lines       14795    14796    +1     
=======================================
+ Hits         7247     7248    +1     
  Misses       7548     7548           
Files Coverage Δ
dpgen/generator/run.py 69.43% <100.00%> (+0.01%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@wanghan-iapcm wanghan-iapcm merged commit 5219416 into deepmodeling:devel Nov 10, 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.

2 participants