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

Fixing issue with newline on conda run #13841

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

sohamvakani
Copy link

Description

Fixing newline conda error from issue #11763

Checklist - did you ...

  • Add a file to the news directory (using the template) for the next release's release notes?
  • Add / update necessary tests?
  • Add / update outdated documentation?

@conda-bot
Copy link
Contributor

We require contributors to sign our Contributor License Agreement and we don't have one on file for @sohamvakani.

In order for us to review and merge your code, please e-sign the Contributor License Agreement PDF. We then need to manually verify your signature, merge the PR (conda/infrastructure#921), and ping the bot to refresh the PR.

@travishathaway
Copy link
Contributor

@conda-bot check

@conda-bot conda-bot added the cla-signed [bot] added once the contributor has signed the CLA label Apr 24, 2024
Copy link
Contributor

@travishathaway travishathaway left a comment

Choose a reason for hiding this comment

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

@sohamvakani,

Thanks for this pull request. Please see my requested changes.

Also, before we consider this ready for approval, we will need to see some new tests to assert that your changes actually solve the problem. These tests can be placed in tests/cli/test_main_run.py.

Please let us know if you have any questions.

- include-me
- defaults
- conda-forge
prefix: /Users/sohamvakani/Documents/EECE3093_SoftwareEngineering/conda-EECE3093/devenv/Darwin/x86_64/envs/devenv-3.10-c/envs/test_env
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm guessing this was something created to test this locally? Please remove this file.


### Bug fixes

* Fixed newline error on conda run #11763
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
* Fixed newline error on conda run #11763
* Fixed newline error for conda run (#11763)

@@ -115,9 +115,9 @@ def execute(args: Namespace, parser: ArgumentParser) -> int:
# display stdout/stderr if it was captured
if not args.no_capture_output:
if response.stdout:
print(response.stdout, file=sys.stdout)
print(response.stdout, file=sys.stdout,end='')
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
print(response.stdout, file=sys.stdout,end='')
print(response.stdout, file=sys.stdout, end="")

Addresses pre-commit check failure.

if response.stderr:
print(response.stderr, file=sys.stderr)
print(response.stderr, file=sys.stderr,end='')
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
print(response.stderr, file=sys.stderr,end='')
print(response.stderr, file=sys.stderr, end="")

Addresses pre-commit check failure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed [bot] added once the contributor has signed the CLA
Projects
Status: 🏗️ In Progress
Development

Successfully merging this pull request may close these issues.

None yet

3 participants