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

Remove uses of securesystemslib.util.TempFile #918

Closed

Conversation

joshuagl
Copy link
Member

Note: this change breaks compatibility with ssl v0.11.3 and thus should not be merged until a new release of ssl has been made and is available on PyPI.

Description of the changes being introduced by the pull request: remove use of securesystemslib.util.TempFile in favour of tempfile.TemporaryFile from the Python standard library. SSL's TempFile included features which are no longer used by TUF or in-toto and had API which was inconsistent with normal Python file objects, and thus was removed.

Please verify and check that the pull request fulfills the following
requirements
:

  • The code follows the Code Style Guidelines
  • Tests have been added for the bug fix or new feature
  • Docs have been added for the bug fix or new feature

The class has been removed from securesystemslib as its desirable
features are no longer required and its behavioural inconsistencies
with a standard Python file object are confusing. Therefore remove
uses of the class from TUF.

Signed-off-by: Joshua Lock <jlock@vmware.com>
@trishankatdatadog trishankatdatadog added this to the 0.12.0 milestone Oct 2, 2019
@lukpueh lukpueh mentioned this pull request Oct 14, 2019
3 tasks
@lukpueh
Copy link
Member

lukpueh commented Oct 14, 2019

Will be merged with #934.

@lukpueh lukpueh closed this Oct 14, 2019
@joshuagl joshuagl deleted the joshuagl/rmssltempfile branch October 14, 2019 11:20
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.

None yet

3 participants