/usr/lib/python3/dist-packages/asdf/constants.py is in python3-asdf 1.2.1-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | # Licensed under a 3-clause BSD style license - see LICENSE.rst
# -*- coding: utf-8 -*-
from __future__ import absolute_import, division, unicode_literals, print_function
import numpy as np
ASDF_MAGIC = b'#ASDF'
BLOCK_MAGIC = b'\xd3BLK'
BLOCK_HEADER_BOILERPLATE_SIZE = 6
ASDF_STANDARD_COMMENT = b'ASDF_STANDARD'
INDEX_HEADER = b'#ASDF BLOCK INDEX'
# The maximum number of blocks supported
MAX_BLOCKS = 2 ** 16
MAX_BLOCKS_DIGITS = int(np.ceil(np.log10(MAX_BLOCKS) + 1))
YAML_TAG_PREFIX = 'tag:yaml.org,2002:'
YAML_END_MARKER_REGEX = br'\r?\n\.\.\.((\r?\n)|$)'
STSCI_SCHEMA_URI_BASE = 'http://stsci.edu/schemas/'
BLOCK_FLAG_STREAMED = 0x1
|