mirror of https://github.com/pypa/pip
Drop csv23 in favor of stdlib csv
Using csv23 has been unnecessary since dropping Python 2 support. It previously remained as a compatibility shim.
This commit is contained in:
parent
609d9d4a68
commit
14380668b5
|
@ -1,5 +1,6 @@
|
||||||
"""Helper for building wheels as would be in test cases.
|
"""Helper for building wheels as would be in test cases.
|
||||||
"""
|
"""
|
||||||
|
import csv
|
||||||
import itertools
|
import itertools
|
||||||
from base64 import urlsafe_b64encode
|
from base64 import urlsafe_b64encode
|
||||||
from collections import namedtuple
|
from collections import namedtuple
|
||||||
|
@ -11,7 +12,6 @@ from hashlib import sha256
|
||||||
from io import BytesIO, StringIO
|
from io import BytesIO, StringIO
|
||||||
from zipfile import ZipFile
|
from zipfile import ZipFile
|
||||||
|
|
||||||
import csv23
|
|
||||||
from pip._vendor.requests.structures import CaseInsensitiveDict
|
from pip._vendor.requests.structures import CaseInsensitiveDict
|
||||||
from pip._vendor.six import ensure_binary, ensure_text
|
from pip._vendor.six import ensure_binary, ensure_text
|
||||||
|
|
||||||
|
@ -241,7 +241,7 @@ def record_file_maker_wrapper(
|
||||||
records = record_callback(records)
|
records = record_callback(records)
|
||||||
|
|
||||||
with StringIO(newline="") as buf:
|
with StringIO(newline="") as buf:
|
||||||
writer = csv23.writer(buf)
|
writer = csv.writer(buf)
|
||||||
for record in records:
|
for record in records:
|
||||||
writer.writerow(map(ensure_text, record))
|
writer.writerow(map(ensure_text, record))
|
||||||
contents = buf.getvalue().encode("utf-8")
|
contents = buf.getvalue().encode("utf-8")
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
--use-feature=2020-resolver
|
--use-feature=2020-resolver
|
||||||
cryptography==2.8
|
cryptography==2.8
|
||||||
csv23
|
|
||||||
enum34; python_version < '3.4'
|
enum34; python_version < '3.4'
|
||||||
freezegun
|
freezegun
|
||||||
mock
|
mock
|
||||||
|
|
Loading…
Reference in New Issue