Skip to content

Navigation Menu

Sign in
Sign up

Use __str__ instead of to_string() - #59

Open
MatthewKhouzam wants to merge 2 commits into
eclipse-cdt-cloud:master from
MatthewKhouzam:str_fix
Open

Use __str__ instead of to_string() #59
MatthewKhouzam wants to merge 2 commits into
eclipse-cdt-cloud:master from
MatthewKhouzam:str_fix

Conversation

@MatthewKhouzam

@MatthewKhouzam MatthewKhouzam commented Oct 25, 2023

Copy link
Copy Markdown
Contributor

Works with str(object) and print(object). It is the more "pythonic" way.

Replace all .format strings with fstrings and remove linter directives.

Works with str(object) and print(object). It is the more "pythonic"
way.
Replace all .format strings with fstrings and remove linter directives.
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>

@bhufmann bhufmann left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for the updates. Do you need to add fstrings to the requirements.txt?

Comment thread tsp_cli_client Outdated
response = tsp_client.fetch_configuration(options.type_id, options.list_configuration)
if response.status_code == 200:
print(' {0}'.format(response.model.to_string()))
print(f' {response.model}

@bhufmann bhufmann Nov 2, 2023

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

this leads to an error SyntaxError: unterminated string literal (detected at line 431)
You need to terminate the string

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@bhufmann bhufmann bhufmann requested changes

Requested changes must be addressed to merge this pull request.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /