Skip to content

Replace py.io.TextIO with io.StringIO#6064

Merged
nicoddemus merged 1 commit into
pytest-dev:masterfrom
bluetech:py.textio-stringio
Oct 26, 2019
Merged

Replace py.io.TextIO with io.StringIO#6064
nicoddemus merged 1 commit into
pytest-dev:masterfrom
bluetech:py.textio-stringio

Conversation

@bluetech

Copy link
Copy Markdown
Member

In Python3, py.io.TextIO is just an alias to io.StringIO. Remove the indirection.

In Python3, py.io.TextIO is just an alias to io.StringIO. Remove the
indirection.

@nicoddemus nicoddemus left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks! 👍

@nicoddemus nicoddemus merged commit ac633b8 into pytest-dev:master Oct 26, 2019
@blueyed

blueyed commented Oct 27, 2019

Copy link
Copy Markdown
Contributor

Thanks for this!
Just wanted to note that this is not really a bugfix, and would have been better off in features.

@asottile

Copy link
Copy Markdown
Member

Thanks for this!
Just wanted to note that this is not really a bugfix, and would have been better off in features.

Seems to perfectly fit the bill for trivial to me -- master seems appropriate

@blueyed

blueyed commented Oct 29, 2019

Copy link
Copy Markdown
Contributor

Well, it was causing conflicts with typing changes (also from @bluetech IIRC).
I think cleanups should happen not in the stable branch (master), but where code has changed already more (features).
I can see that the PR template might indicate that master is better fitting, but that does not make it necessarily true.

@blueyed

blueyed commented Oct 29, 2019

Copy link
Copy Markdown
Contributor

Also "trivial" is more like fixing some typo in my opinion, not changing imports in multiple files.

@asottile

Copy link
Copy Markdown
Member

this change literally does nothing, they are referrentially equal -- if this isn't trivial I don't know what is

blueyed added a commit to blueyed/pytest that referenced this pull request Oct 29, 2019
- make it clear that the text should be deleted, which is often not the
  case - resulting in handling it as incomplete TODOs
- clarify targetting master/features and make it a single actionable
  item.  Ref: pytest-dev#6064 (comment)
- fix punctuation
@blueyed

blueyed commented Oct 29, 2019

Copy link
Copy Markdown
Contributor

=> #6104

@bluetech bluetech deleted the py.textio-stringio branch February 28, 2020 12:08
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.

4 participants