mirror of
https://github.com/python/cpython.git
synced 2025-11-18 18:31:56 +00:00
bpo-30427: eliminate redundant type checks in os.path.normcase() (GH-1712)
https://bugs.python.org/issue30427
This commit is contained in:
parent
02b84cb1b4
commit
74510e2a57
3 changed files with 7 additions and 15 deletions
|
|
@ -0,0 +1,2 @@
|
|||
``os.path.normcase()`` relies on ``os.fspath()`` to check the type of its argument. Redundant checks have been removed from its ``posixpath.normcase()`` and ``ntpath.normcase()`` implementations.
|
||||
Patch by Wolfgang Maier.
|
||||
Loading…
Add table
Add a link
Reference in a new issue