Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-9601

Config.loadFromStream does not accept StringIO objects (and maybe files)

    Details

    • Type: Bug
    • Status: To Do
    • Resolution: Unresolved
    • Fix Version/s: None
    • Component/s: pex_config
    • Labels:
      None
    • Templates:
    • Story Points:
      1
    • Team:
      Data Access and Database

      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.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jbosch Jim Bosch
              Watchers:
              Jim Bosch, Tim Jenness
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:

                Summary Panel