Commit 6e75552
Sebastian Ramacher
Use imp to get the suffix that should be dropped (Closes: bpython#204).
Don't just drop the extension since Python 3 supports modules named like
foo.cpython-XY.so. Use the suffixes from imp.get_suffixes() instead.1 parent 28521a4 commit 6e75552
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
127 | 130 | | |
128 | 131 | | |
129 | 132 | | |
| |||
0 commit comments