Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade distlib to 0.3.8 #12493

Merged
merged 3 commits into from
Jan 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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())
Loading
Loading