You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix newline stripping in plain text readers (#174)
Summary:
Fixes#173
Note that the [input to `strip`](https://docs.python.org/3/library/stdtypes.html#str.strip)
> is a string specifying the **set of characters** to be removed. [Emphasis mine]
Thus, stripping works something like
```python
for char in chars:
string.replace(char, "")
```
rather than
```python
string.replace(chars, "")
```
This means that always stripping `"\r\n"` is harmless even if the line terminator is only `"\n"` or `\"r"`.
Reviewed By: ejguan
Differential Revision: D33684458
Pulled By: NivekT
fbshipit-source-id: 9821b77d60d3afe038ae698965beefe319783aa1
ghstack-source-id: 37a119b
Pull Request resolved: #176
0 commit comments