You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While taking either a stream or a string filename gives maximal compatibility it's entirely possible to hand pyembroidery an invalid stream. Such as one opened in textmode to write a format that requires binary. This should be detected an an error should be raised rejecting unacceptable stream modes. It also might be possible to reopen a stream in the correct mode, in some cases though .name could be a file descriptor instead so better to just raise an error.
The text was updated successfully, but these errors were encountered:
While taking either a stream or a string filename gives maximal compatibility it's entirely possible to hand pyembroidery an invalid stream. Such as one opened in textmode to write a format that requires binary. This should be detected an an error should be raised rejecting unacceptable stream modes. It also might be possible to reopen a stream in the correct mode, in some cases though .name could be a file descriptor instead so better to just raise an error.
The text was updated successfully, but these errors were encountered: