Ticket #5713 enhancement new
UnixSFTPFile hordes flag-conversion code
|Reported by:||magmatt||Owned by:||magmatt|
(diff, github, buildbot, log)
Why: conch.unix.UnixSFTPFile.init has code that converts SFTP file-opening flags to os-module flags (for use with os.open). I'd like to use that flag-making code, but don't want to use UnixSFTPFile. I think the code should be factored out.
What: My patch takes the flag-making code from init and puts it in a reusable module-level function.