Skip to content

Simplify Group.__setitem__ code for making external link#1989

Merged
tacaswell merged 1 commit intoh5py:masterfrom
takluyver:simplify-setitem-ext-link
Nov 15, 2021
Merged

Simplify Group.__setitem__ code for making external link#1989
tacaswell merged 1 commit intoh5py:masterfrom
takluyver:simplify-setitem-ext-link

Conversation

@takluyver
Copy link
Copy Markdown
Member

@tacaswell made the code like this in #868, to avoid a problem with imports inside functions with the phil lock held, which apparently only affected Python 2. We no longer support Python 2, and the filename_encode function can no longer import anything, so I think this can safely be changed back to the simpler code now.

@takluyver takluyver added this to the 3.6 milestone Nov 2, 2021
@codecov
Copy link
Copy Markdown

codecov Bot commented Nov 2, 2021

Codecov Report

Merging #1989 (a6e1a26) into master (657ef3e) will decrease coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1989      +/-   ##
==========================================
- Coverage   89.90%   89.88%   -0.02%     
==========================================
  Files          17       17              
  Lines        2308     2304       -4     
==========================================
- Hits         2075     2071       -4     
  Misses        233      233              
Impacted Files Coverage Δ
h5py/_hl/group.py 96.78% <100.00%> (-0.06%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 657ef3e...a6e1a26. Read the comment docs.

@tacaswell tacaswell merged commit 9933fa8 into h5py:master Nov 15, 2021
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