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

Appearance settings

[3.8] bpo-37772: fix zipfile.Path.iterdir() outputs (GH-15170)#15461

Merged
jaraco merged 1 commit into
python:3.8python/cpython:3.8from
miss-islington:backport-a4e2991-3.8miss-islington/cpython:backport-a4e2991-3.8Copy head branch name to clipboard
Aug 24, 2019
Merged

[3.8] bpo-37772: fix zipfile.Path.iterdir() outputs (GH-15170)#15461
jaraco merged 1 commit into
python:3.8python/cpython:3.8from
miss-islington:backport-a4e2991-3.8miss-islington/cpython:backport-a4e2991-3.8Copy head branch name to clipboard

Conversation

@miss-islington

@miss-islington miss-islington commented Aug 24, 2019

Copy link
Copy Markdown
Contributor
  • fix Path._add_implied_dirs to include all implied directories

  • fix Path._add_implied_dirs to include all implied directories

  • Optimize code by using sets instead of lists

  • 📜🤖 Added by blurb_it.

  • fix Path._add_implied_dirs to include all implied directories

  • Optimize code by using sets instead of lists

  • 📜🤖 Added by blurb_it.

  • Add tests to zipfile.Path.iterdir() fix

  • Update test for zipfile.Path.iterdir()

  • remove whitespace from test file

  • Rewrite NEWS blurb to describe the user-facing impact and avoid implementation details.

  • remove redundant [] within set comprehension

  • Update to use unique_everseen to maintain order and other suggestions in review

  • remove whitespace and add back add_dirs in tests

  • Add new standalone function parents using posixpath to get parents of a directory

  • removing whitespace (sorry)

  • Remove import pathlib from zipfile.py

  • Rewrite _parents as a slice on a generator of the ancestry of a path.

  • Remove check for '.' and '/', now that parents no longer returns those.

  • Separate calculation of implied dirs from adding those

  • Re-use _implied_dirs in tests for generating zipfile with dir entries.

  • Replace three fixtures (abcde, abcdef, abde) with one representative example alpharep.

  • Simplify implementation of _implied_dirs by collapsing the generation of parent directories for each name.
    (cherry picked from commit a4e2991)

Co-authored-by: shireenrao shireenrao@gmail.com

https://bugs.python.org/issue37772

* fix Path._add_implied_dirs to include all implied directories

* fix Path._add_implied_dirs to include all implied directories

* Optimize code by using sets instead of lists

* 📜🤖 Added by blurb_it.

* fix Path._add_implied_dirs to include all implied directories

* Optimize code by using sets instead of lists

* 📜🤖 Added by blurb_it.

* Add tests to zipfile.Path.iterdir() fix

* Update test for zipfile.Path.iterdir()

* remove whitespace from test file

* Rewrite NEWS blurb to describe the user-facing impact and avoid implementation details.

* remove redundant [] within set comprehension

* Update to use unique_everseen to maintain order and other suggestions in review

* remove whitespace and add back add_dirs in tests

* Add new standalone function parents using posixpath to get parents of a directory

* removing whitespace (sorry)

* Remove import pathlib from zipfile.py

* Rewrite _parents as a slice on a generator of the ancestry of a path.

* Remove check for '.' and '/', now that parents no longer returns those.

* Separate calculation of implied dirs from adding those

* Re-use _implied_dirs in tests for generating zipfile with dir entries.

* Replace three fixtures (abcde, abcdef, abde) with one representative example alpharep.

* Simplify implementation of _implied_dirs by collapsing the generation of parent directories for each name.
(cherry picked from commit a4e2991)

Co-authored-by: shireenrao <shireenrao@gmail.com>
@miss-islington

Copy link
Copy Markdown
Contributor Author

@shireenrao and @jaraco: Status check is done, and it's a success ✅ .

1 similar comment
@miss-islington

Copy link
Copy Markdown
Contributor Author

@shireenrao and @jaraco: Status check is done, and it's a success ✅ .

@jaraco jaraco merged commit c410f38 into python:3.8 Aug 24, 2019
@bedevere-bot

Copy link
Copy Markdown

@jaraco: Please replace # with GH- in the commit message next time. Thanks!

@miss-islington miss-islington deleted the backport-a4e2991-3.8 branch August 24, 2019 16:03
@miss-islington

Copy link
Copy Markdown
Contributor Author

@shireenrao and @jaraco: Status check is done, and it's a success ✅ .

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.

5 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.