]>
jfr.im git - dlqueue.git/blob - venv/lib/python3.11/site-packages/pip/_vendor/distlib/__init__.py
1 # -*- coding: utf-8 -*-
3 # Copyright (C) 2012-2022 Vinay Sajip.
4 # Licensed to the Python Software Foundation under a contributor agreement.
5 # See LICENSE.txt and CONTRIBUTORS.txt.
11 class DistlibException(Exception):
15 from logging
import NullHandler
16 except ImportError: # pragma: no cover
17 class NullHandler(logging
.Handler
):
18 def handle(self
, record
): pass
19 def emit(self
, record
): pass
20 def createLock(self
): self
.lock
= None
22 logger
= logging
.getLogger(__name__
)
23 logger
.addHandler(NullHandler())