Skip to content

Commit e57cf4f

Browse files
authored
Merge pull request pypa#12493 from sbidoul/upgrade-distlib-sbi
Upgrade distlib to 0.3.8
2 parents a1b4356 + 7fdfda1 commit e57cf4f

15 files changed

+592
-415
lines changed

news/distlib.vendor.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Upgrade distlib to 0.3.8

src/pip/_vendor/distlib/__init__.py

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,33 @@
11
# -*- coding: utf-8 -*-
22
#
3-
# Copyright (C) 2012-2022 Vinay Sajip.
3+
# Copyright (C) 2012-2023 Vinay Sajip.
44
# Licensed to the Python Software Foundation under a contributor agreement.
55
# See LICENSE.txt and CONTRIBUTORS.txt.
66
#
77
import logging
88

9-
__version__ = '0.3.6'
9+
__version__ = '0.3.8'
10+
1011

1112
class DistlibException(Exception):
1213
pass
1314

15+
1416
try:
1517
from logging import NullHandler
16-
except ImportError: # pragma: no cover
18+
except ImportError: # pragma: no cover
19+
1720
class NullHandler(logging.Handler):
18-
def handle(self, record): pass
19-
def emit(self, record): pass
20-
def createLock(self): self.lock = None
21+
22+
def handle(self, record):
23+
pass
24+
25+
def emit(self, record):
26+
pass
27+
28+
def createLock(self):
29+
self.lock = None
30+
2131

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

0 commit comments

Comments
 (0)