compat.py 148 B

123456
  1. string_types = str, bytes
  2. def with_metaclass(meta, *bases):
  3. """Create a base class with a metaclass."""
  4. return meta('NewBase', bases, {})