HEX
Server: Apache/2.4.46 (Win64) OpenSSL/1.1.1j PHP/8.4.25
System: Windows NT DESKTOP-4TAV2RJ 10.0 build 19045 (Windows 10) AMD64
User: fred (0)
PHP: 8.4.25
Disabled: NONE
Upload Files
File: C:/Users/fred/anaconda3/Lib/site-packages/smart_open/constants.py
# -*- coding: utf-8 -*-
#
# Copyright (C) 2020 Radim Rehurek <[email protected]>
#
# 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)