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

use Address.to_string instead of manual suffix replacement #298

Merged
merged 3 commits into from
Sep 28, 2023

Conversation

barbibulle
Copy link
Collaborator

No description provided.

apps/console.py Outdated
@@ -1172,7 +1172,7 @@ def to_display_string(self):
name = ''

# Remove any '/P' qualifier suffix from the address string
address_str = str(self.address).replace('/P', '')
address_str = self.address.to_string(False)
Copy link
Collaborator

Choose a reason for hiding this comment

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

it's not obvious by reading this LOC what False is referring to. is that param required or could we change it to optional?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This param is with_type_qualifier, it is already optional, in the sense that it has a default value (True). To make it clearer, I'll update this call to say to_string(with_type_qualifier=False) explicitly.

@barbibulle barbibulle merged commit fa12165 into main Sep 28, 2023
27 checks passed
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