Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/smart_open/constants.py: 100%

9 statements  

« prev     ^ index     » next       coverage.py v7.2.7, created at 2023-06-07 06:57 +0000

1# -*- coding: utf-8 -*- 

2# 

3# Copyright (C) 2020 Radim Rehurek <me@radimrehurek.com> 

4# 

5# This code is distributed under the terms and conditions 

6# from the MIT License (MIT). 

7# 

8 

9"""Some universal constants that are common to I/O operations.""" 

10 

11 

12READ_BINARY = 'rb' 

13 

14WRITE_BINARY = 'wb' 

15 

16BINARY_MODES = (READ_BINARY, WRITE_BINARY) 

17 

18BINARY_NEWLINE = b'\n' 

19 

20WHENCE_START = 0 

21 

22WHENCE_CURRENT = 1 

23 

24WHENCE_END = 2 

25 

26WHENCE_CHOICES = (WHENCE_START, WHENCE_CURRENT, WHENCE_END)