You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
467 B
27 lines
467 B
# -*- coding: utf-8 -*-
|
|
#
|
|
# Copyright (C) 2020 Radim Rehurek <me@radimrehurek.com>
|
|
#
|
|
# This code is distributed under the terms and conditions
|
|
# from the MIT License (MIT).
|
|
#
|
|
|
|
"""Some universal constants that are common to I/O operations."""
|
|
|
|
|
|
READ_BINARY = 'rb'
|
|
|
|
WRITE_BINARY = 'wb'
|
|
|
|
BINARY_MODES = (READ_BINARY, WRITE_BINARY)
|
|
|
|
BINARY_NEWLINE = b'\n'
|
|
|
|
WHENCE_START = 0
|
|
|
|
WHENCE_CURRENT = 1
|
|
|
|
WHENCE_END = 2
|
|
|
|
WHENCE_CHOICES = (WHENCE_START, WHENCE_CURRENT, WHENCE_END)
|