-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Conversation
@@ -54,7 +53,7 @@ def getter(self): | |||
|
|||
return Remote(self.repo, name=remote) | |||
|
|||
getter.__name__ = builtin_str(name) | |||
getter.__name__ = str(name) |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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 🙂
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
thanks for the review, @efiop ! I'll address those comments in the next PR. |
@MrOutis Oops, sorry, merged accidentally. 🙁 |
Related: #1818