Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Remove shellify#184

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
nth10sd merged 15 commits intomasterfromuse-pathlib2-shellescape-more
Apr 23, 2018
Merged

Remove shellify#184

nth10sd merged 15 commits intomasterfromuse-pathlib2-shellescape-more
Apr 23, 2018

Conversation

@nth10sd
Copy link
Contributor

@nth10sdnth10sd commentedApr 20, 2018
edited
Loading

pathlib2 from PyPI (orpathlib via the Python 3.5+ stdlib) andshellescape from PyPI are the new goodness to use. This is because the custom functionsgetAbsPathForAdjacentFile,normExpUserPath andshellify do not have tests.

This PRstarts us off the route for usingpathlib2/pathlib in our tests first, and completely removesshellify.Fixes#183.

@nth10sd
Copy link
ContributorAuthor

Due to test failures, I will have to split offpathlib2 additions into a separate PR, so this will just largely be aboutshellify replacement byshellescape.

@nth10sdnth10sd changed the titleStart using pathlib2 and remove shellifyRemove shellifyApr 20, 2018
@codecov-io
Copy link

codecov-io commentedApr 20, 2018
edited
Loading

Codecov Report

❗ No coverage uploaded for pull request base (master@6929634).Click here to learn what that means.
The diff coverage is23.07%.

Impacted file tree graph

@@            Coverage Diff            @@##             master     #184   +/-   ##=========================================  Coverage          ?   20.54%           =========================================  Files             ?       27             Lines             ?     2565             Branches          ?        0           =========================================  Hits              ?      527             Misses            ?     2038             Partials          ?        0
Impacted FilesCoverage Δ
src/funfuzz/js/js_interesting.py20.34% <100%> (ø)
src/funfuzz/util/subprocesses.py11.36% <12.5%> (ø)
src/funfuzz/js/compare_jit.py16.36% <14.28%> (ø)
src/funfuzz/util/lithium_helpers.py13.72% <20%> (ø)
src/funfuzz/js/compile_shell.py17.23% <33.33%> (ø)
src/funfuzz/js/inspect_shell.py22.33% <50%> (ø)

Continue to review full report at Codecov.

Legend -Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing data
Powered byCodecov. Last update6929634...b80859f. Read thecomment docs.

@nth10sd
Copy link
ContributorAuthor

This latest build failure is unrelated. During the process, mozilla-centralupgraded its minimium Python requirement to be 3.5+ (seebug 1451065).

All the checkspass at the previous ec0a3a1 changeset here.

anyLineContains(r.err,"[scriptfile] [scriptarg...]"))):
print("Got usage error from:")
print(" %s"%sps.shellify(command))
print(" %s"%" ".join([quote(x)forxincommand]))
Copy link
Collaborator

Choose a reason for hiding this comment

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

Don't usestr.join([list comprehension]), usestr.join(generator expression) instead.
List comprehension builds the whole list in-memory and then callsjoin() on the result. A generator expression works as though each item is yielded tojoin() as it is evaluated. The syntax is the same, just drop the square brackets.

This occurs on nearly every line changed, so I haven't added comments on them all.

Copy link
Collaborator

@jschwartzentruberjschwartzentruber left a comment

Choose a reason for hiding this comment

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

lgtm

@nth10sdnth10sd merged commit6378ca3 intomasterApr 23, 2018
@nth10sdnth10sd deleted the use-pathlib2-shellescape-more branchApril 23, 2018 20:55
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@jschwartzentruberjschwartzentruberjschwartzentruber approved these changes

Assignees

@nth10sdnth10sd

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@nth10sd@codecov-io@jschwartzentruber

[8]ページ先頭

©2009-2025 Movatter.jp