summaryrefslogtreecommitdiff
path: root/venv/Lib/site-packages/lazy_object_proxy/compat.py
blob: dc6edfa50fe598dbf0b414839fc888c09b73fb55 (plain)
1
2
3
4
5
6
7
8
9
import sys

PY2 = sys.version_info[0] == 2
PY3 = sys.version_info[0] == 3


def with_metaclass(meta, *bases):
    """Create a base class with a metaclass."""
    return meta("NewBase", bases, {})