Skip to content

Commit

Permalink
Remove unnecessary dependency on six.
Browse files Browse the repository at this point in the history
Remove the last remaining usag of it in VCR.testcase.
  • Loading branch information
charettes committed Jul 15, 2023
1 parent 7e11cfc commit 3ff822d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ def run_tests(self):
install_requires = [
"PyYAML",
"wrapt",
"six>=1.5",
"yarl",
# Support for urllib3 >=2 needs Python >=3.10
# so we need to block urllib3 >=2 for Python <3.10 for now.
Expand Down
6 changes: 2 additions & 4 deletions vcr/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
from collections import abc as collections_abc
from pathlib import Path

import six

from . import filters, matchers
from .cassette import Cassette
from .persisters.filesystem import FilesystemPersister
Expand Down Expand Up @@ -256,5 +254,5 @@ def register_persister(self, persister):

def test_case(self, predicate=None):
predicate = predicate or self.is_test_method
# TODO: Remove this reference to `six` in favor of the Python3 equivalent
return six.with_metaclass(auto_decorate(self.use_cassette, predicate))
metaclass = auto_decorate(self.use_cassette, predicate)
return metaclass('temporary_class', (), {})

0 comments on commit 3ff822d

Please sign in to comment.