Commit e00e51f
Ensure encoding["source"] is available for a pathlib.Path object (#6974)
* Ensure 'source' is encoded even when its a Path
Resolves Issue #5888.
With this change, the "source" encoding will be stored whether the filename is
a string or a Path object.
* Add a test for encoding source with Path object
* Update whats-new.rst
* Ensure only string and Path filenames encode source
Co-authored-by: Mathias Hauser <[email protected]>
* Update doc/whats-new.rst
* fix link
Co-authored-by: Mathias Hauser <[email protected]>
Co-authored-by: Deepak Cherian <[email protected]>1 parent 073f414 commit e00e51f
3 files changed
+16
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
| 69 | + | |
68 | 70 | | |
69 | 71 | | |
70 | 72 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
358 | 358 | | |
359 | 359 | | |
360 | 360 | | |
361 | | - | |
362 | | - | |
363 | | - | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
364 | 364 | | |
365 | 365 | | |
366 | 366 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5068 | 5068 | | |
5069 | 5069 | | |
5070 | 5070 | | |
| 5071 | + | |
| 5072 | + | |
| 5073 | + | |
| 5074 | + | |
| 5075 | + | |
| 5076 | + | |
| 5077 | + | |
| 5078 | + | |
| 5079 | + | |
| 5080 | + | |
| 5081 | + | |
5071 | 5082 | | |
5072 | 5083 | | |
5073 | 5084 | | |
| |||
0 commit comments