-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
Closed as not planned
Closed as not planned
Copy link
Labels
3.13bugs and security fixesbugs and security fixes3.14bugs and security fixesbugs and security fixestopic-importlibtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Bug report
importlib.resources.abc.Traversable.read_text has a signature that only takes an encoding parameter.
importlib.resources._functional.read_text calls it passing errors.
This, unsurprisingly, causes a TypeError. My exact error message is Traversable.read_text() got an unexpected keyword argument 'errors', but I believe it's an instance of CompatibilityFiles.SpecPath (as I've never bothered updating this code for the structural changes).
(Ping @jaraco)
Metadata
Metadata
Assignees
Labels
3.13bugs and security fixesbugs and security fixes3.14bugs and security fixesbugs and security fixestopic-importlibtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error