Skip to content

Commit

Permalink
Add TODO to consolidate this behavior in CPython.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Aug 26, 2024
1 parent cc61e61 commit 774a3ac
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_path.py
Original file line number Diff line number Diff line change
Expand Up @@ -656,6 +656,8 @@ def __init__(self, filename, *args, **kwargs):
def for_name(cls, name, archive):
"""
Construct the same way that ZipFile.writestr does.
TODO: extract this functionality and re-use
"""
self = cls(filename=name, date_time=time.localtime(time.time())[:6])
self.compress_type = archive.compression
Expand Down

0 comments on commit 774a3ac

Please sign in to comment.