Files
Investidor-V2/outputs/investmoz-audit-current-20261012/line12-pdf-tools/pypdfium2_cfg/__init__.py
T
nala c13f250b87
tests / ci (push) Canceled after 0s
versao compilada
2026-10-15 17:37:00 +02:00

23 lines
528 B
Python

# SPDX-FileCopyrightText: 2026 geisserml <geisserml@gmail.com>
# SPDX-License-Identifier: Apache-2.0 OR BSD-3-Clause
import logging
class _Mutable:
def __init__(self, value):
self.value = value
def __repr__(self):
return f"{type(self).__name__}({self.value})"
def __bool__(self):
return bool(self.value)
class _MutableLoglevel (_Mutable):
def __bool__(self): # bw compat
return self.value < logging.WARNING
DEBUG_AUTOCLOSE = _MutableLoglevel(logging.WARNING)