Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from enum import Enum
- class OpenMode(str, Enum):
- _binary = "b"
- _update = "+"
- read = "r"
- truncate_and_write = "w"
- exclusive_create = "x"
- append = "a"
- update = read + _update
- truncate_and_update = truncate_and_write + _update
- exclusive_create_and_update = exclusive_create + _update
- append_and_read = append + _update
- read_binary = read + _binary
- truncate_and_write_binary = truncate_and_write + _binary
- exclusive_create_binary = exclusive_create + _binary
- append_binary = append + _binary
- update_binary = update + _binary
- truncate_and_update_binary = truncate_and_update + _binary
- exclusive_create_and_update_binary = exclusive_create_and_update + _binary
- append_and_read_binary = append_and_read + _binary
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement