Commit 97eed0f
Fix suffix() and unsuffix() to use python builtins (#4912)
* Fix suffix() and unsuffix() to use python builtins
I ran into a strange behaviour with the existing custom
implementation:
unsuffix("foo.txt") -> "foo"
unsuffix("foo") -> ""
The python builtins to a seemingly more reasonable thing:
unsuffix("foo.txt") -> "foo"
unsuffix("foo") -> "foo"
* Add myself to AUTHORS1 parent abda378 commit 97eed0f
2 files changed
+4
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
273 | 273 | | |
274 | 274 | | |
275 | 275 | | |
| 276 | + | |
276 | 277 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2336 | 2336 | | |
2337 | 2337 | | |
2338 | 2338 | | |
2339 | | - | |
2340 | | - | |
2341 | | - | |
2342 | | - | |
2343 | | - | |
| 2339 | + | |
| 2340 | + | |
2344 | 2341 | | |
2345 | 2342 | | |
2346 | | - | |
| 2343 | + | |
2347 | 2344 | | |
2348 | 2345 | | |
2349 | 2346 | | |
| |||
0 commit comments