Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
__init__.py34 linesDownload Raw Back to distlib
1# -*- coding: utf-8 -*-2#3# Copyright (C) 2012-2023 Vinay Sajip.4# Licensed to the Python Software Foundation under a contributor agreement.5# See LICENSE.txt and CONTRIBUTORS.txt.6#7import logging8 9__version__ = '0.3.8'10 11 12class DistlibException(Exception):13    pass14 15 16try:17    from logging import NullHandler18except ImportError:  # pragma: no cover19 20    class NullHandler(logging.Handler):21 22        def handle(self, record):23            pass24 25        def emit(self, record):26            pass27 28        def createLock(self):29            self.lock = None30 31 32logger = logging.getLogger(__name__)33logger.addHandler(NullHandler())34 
codekingpro/portable-devtools · Team Ai