Commit 39636fb
committed
Unify common logic for dlopen(str)
With the clarity that the input filename has to be a str object at this
stage, we can now bring together the common logic that the win32 and
posix branches took.
Notice how the win32 implementation previously clearer the error if
PyArgs_ParseTuple failed, only to try again with the "et" format variant
(now "U" as per the previous commit). As noted in the previous comment
this was moot, both because the filename argument is guaranteed to be a
string at this point, and because it was used in PyUnicode_AsUTF8, which
would have failed if it wasn't given a str object.
Signed-off-by: Rodrigo Tobar <[email protected]>1 parent 9bd89f7 commit 39636fb
1 file changed
+4
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4463 | 4463 | | |
4464 | 4464 | | |
4465 | 4465 | | |
4466 | | - | |
4467 | | - | |
4468 | | - | |
4469 | | - | |
4470 | | - | |
4471 | | - | |
4472 | | - | |
4473 | | - | |
4474 | | - | |
4475 | | - | |
4476 | 4466 | | |
4477 | 4467 | | |
4478 | 4468 | | |
4479 | 4469 | | |
4480 | 4470 | | |
4481 | 4471 | | |
| 4472 | + | |
| 4473 | + | |
| 4474 | + | |
4482 | 4475 | | |
| 4476 | + | |
4483 | 4477 | | |
4484 | 4478 | | |
4485 | 4479 | | |
| |||
0 commit comments