Message282871
| Author |
gregory.p.smith |
| Recipients |
brett.cannon, byrnes, diana, eric.snow, gregory.p.smith, serhiy.storchaka, superluser, twouters, vstinner |
| Date |
2016年12月10日.20:14:24 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1481400864.35.0.599321958175.issue25711@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
So long as this code block that imports os is avoided, I believe that this can be properly frozen:
+ if not isinstance(path, str):
+ import os
+ path = os.fsdecode(path)
But it should be easy to avoid that code path when the standard library is a zip file.
Otherwise it uses importlib (frozen), marshal (builtin), sys (builtin), time (builtin), and zlib [if present] (extension module). |
|