Skip to content

Commit

Permalink
Merge pull request #12493 from sbidoul/upgrade-distlib-sbi
Browse files Browse the repository at this point in the history
Upgrade distlib to 0.3.8
  • Loading branch information
sbidoul committed Jan 27, 2024
2 parents a1b4356 + 7fdfda1 commit e57cf4f
Show file tree
Hide file tree
Showing 15 changed files with 592 additions and 415 deletions.
1 change: 1 addition & 0 deletions news/distlib.vendor.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Upgrade distlib to 0.3.8
22 changes: 16 additions & 6 deletions src/pip/_vendor/distlib/__init__.py
Original file line number Diff line number Diff line change
@@ -1,23 +1,33 @@
# -*- coding: utf-8 -*-
#
# Copyright (C) 2012-2022 Vinay Sajip.
# Copyright (C) 2012-2023 Vinay Sajip.
# Licensed to the Python Software Foundation under a contributor agreement.
# See LICENSE.txt and CONTRIBUTORS.txt.
#
import logging

__version__ = '0.3.6'
__version__ = '0.3.8'


class DistlibException(Exception):
pass


try:
from logging import NullHandler
except ImportError: # pragma: no cover
except ImportError: # pragma: no cover

class NullHandler(logging.Handler):
def handle(self, record): pass
def emit(self, record): pass
def createLock(self): self.lock = None

def handle(self, record):
pass

def emit(self, record):
pass

def createLock(self):
self.lock = None


logger = logging.getLogger(__name__)
logger.addHandler(NullHandler())

0 comments on commit e57cf4f

Please sign in to comment.