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

Suggested fixes by iCR, OpenRefactory, Inc.#1486

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

Conversation

openrefactory
Copy link

This issue was detected in branchmain ofGitPython project on the version with commit hash73bde1. This is an instance of an improper method call

Fixes for improper method call:
In file:base.py, there is a methodfrom_tree that creates a temporary file using an unsafe APImktemp. The use of this method is discouraged in thePython documentation.iCR suggested that a temporary file should be created usingNamedTemporaryFile which is aa safe API.iCR replaced the usage ofmktemp withNamedTemporaryFile.

In file:util.py, there is a method__init__ that creates a temporary file using an unsafe APImktemp. The use of this method is discouraged in thePython documentation.iCR suggested that a temporary file should be created usingNamedTemporaryFile which is aa safe API.iCR replaced the usage ofmktemp withNamedTemporaryFile.

This issue was detected byOpenRefactory's Intelligent Code Repair (iCR). We are runningiCR on libraries in thePyPI repository to identify issues and fix them. More info at:pypi.openrefactory.com

@Byron
Copy link
Member

It's by design, the temporary file has to be opened and written bygit in a separate process, and is later renamed. If a human is going to make this PR work though which I doubt, please feel free to open a new one with a personal note.

@ByronByron closed thisAug 31, 2022
@EliahKagan
Copy link
Member

EliahKagan commentedDec 22, 2023
edited
Loading

In case anyone finds this when searching for other PRs, the issues mentioned here were effectively fixed (among other changes):

Byron reacted with heart emoji

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@openrefactory@Byron@EliahKagan

[8]ページ先頭

©2009-2025 Movatter.jp