summaryrefslogtreecommitdiffstats
path: root/Lib/packaging/run.py
diff options
context:
space:
mode:
authorÉric Araujo <merwok@netwok.org>2011-06-04 16:45:40 (GMT)
committerÉric Araujo <merwok@netwok.org>2011-06-04 16:45:40 (GMT)
commit088025fc5bb10711db53d16788c202e3852e3777 (patch)
treea22a656c25f78359c6469029f8356b41161924e7 /Lib/packaging/run.py
parentba661a9c398c1d75a036e0b56bba59ab7191eaa8 (diff)
downloadcpython-088025fc5bb10711db53d16788c202e3852e3777.zip
cpython-088025fc5bb10711db53d16788c202e3852e3777.tar.gz
cpython-088025fc5bb10711db53d16788c202e3852e3777.tar.bz2
Use list constructor or built-in method instead of copy module
Diffstat (limited to 'Lib/packaging/run.py')
-rw-r--r--Lib/packaging/run.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/packaging/run.py b/Lib/packaging/run.py
index de9dd13..1895dde 100644
--- a/Lib/packaging/run.py
+++ b/Lib/packaging/run.py
@@ -5,7 +5,6 @@ import re
import sys
import getopt
import logging
-from copy import copy
from packaging import logger
from packaging.dist import Distribution
@@ -673,7 +672,7 @@ class Dispatcher:
def main(args=None):
old_level = logger.level
- old_handlers = copy(logger.handlers)
+ old_handlers = list(logger.handlers)
try:
dispatcher = Dispatcher(args)
if dispatcher.action is None: