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

IPythonInterpreter delete temp file and close stream #3287

Closed
wants to merge 1 commit into from
Closed

IPythonInterpreter delete temp file and close stream #3287

wants to merge 1 commit into from

Conversation

yx91490
Copy link
Member

@yx91490 yx91490 commented Jan 23, 2019

What is this PR for?

delete temporary file and close inputstream in IPythonInterpreter.checkIPythonPrerequisite()

What type of PR is it?

[Bug Fix]

Todos

*no

What is the Jira issue?

How should this be tested?

  • manual.

Screenshots (if appropriate)

Questions:

  • Does the licenses files need update?
    no
  • Is there breaking changes for older versions?
    no
  • Does this needs documentation?
    no

@zjffdu
Copy link
Contributor

zjffdu commented Jan 23, 2019

+1

return "grpcio is not installed";
try (FileInputStream in = new FileInputStream(stderrFile)) {
return "Fail to run pip freeze.\n" + IOUtils.toString(in);
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it going to close FileInputStream when it is out of scope here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes

@Leemoonsoo
Copy link
Member

LGTM

@asfgit asfgit closed this in a2a6215 Feb 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants