Details
-
Type:
Bug
-
Status: Invalid
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: pex_config
-
Labels:None
-
Story Points:1
-
Team:Architecture
Description
pex.config.Config.loadFromStream's documentation, name, and symmetry with saveToStream all state that it should accept arbitrary file-like objects, but (at least on Python 3) it appears to only accept strings, because it passes its first argument directly to exec, and that accepts only string or bytes objects.
It looks like Russell Owen was aware of this issue given the code comments associated with
DM-3630in commit fcf2f7d48b4409510552106a877c7ee533481f0b