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

py3: remove string compat related code #3024

Merged
merged 1 commit into from Dec 31, 2019
Merged

py3: remove string compat related code #3024

merged 1 commit into from Dec 31, 2019

Conversation

ghost
Copy link

@ghost ghost commented Dec 31, 2019

Related: #1818

@ghost ghost requested a review from efiop December 31, 2019 04:59
@@ -54,7 +53,7 @@ def getter(self):

return Remote(self.repo, name=remote)

getter.__name__ = builtin_str(name)
getter.__name__ = str(name)
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we still need this conversion though?

@@ -54,7 +51,7 @@ def __str__(self):
return relpath(path)

def __repr__(self):
return builtin_str("{}: '{}'").format(type(self).__name__, self)
return str("{}: '{}'").format(type(self).__name__, self)
Copy link
Contributor

Choose a reason for hiding this comment

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

This str("") has no sense 🙂

Copy link
Contributor

@efiop efiop left a comment

Choose a reason for hiding this comment

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

Thanks!

@efiop efiop merged commit 32ee197 into iterative:master Dec 31, 2019
@ghost ghost deleted the unicode-str branch December 31, 2019 19:02
@ghost
Copy link
Author

ghost commented Dec 31, 2019

thanks for the review, @efiop ! I'll address those comments in the next PR.

@efiop
Copy link
Contributor

efiop commented Jan 1, 2020

@MrOutis Oops, sorry, merged accidentally. 🙁

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.

1 participant