Skip to content

Commit 7fdfda1

Browse files
committed
Upgrade distlib to 0.3.8
1 parent 2a7df17 commit 7fdfda1

File tree

13 files changed

+534
-379
lines changed

13 files changed

+534
-379
lines changed

news/distlib.vendor.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Upgrade distlib to 0.3.7
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.7'
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)