@staticmethod
    def from_string(vc):
        """Return the VersionControl superclass from a string, for example
        VersionControl.from_string('git') will return Git."""
        try:
            # Note: this means all version controls must have
            # a title naming convention (!)
            vc = globals()[vc.title()]
            assert(issubclass(vc, VersionControl))
            return vc
        except (KeyError, __HOLE__):
            raise NotImplementedError("Unknown version control system.")
dataset/ETHPy150Open hayd/pep8radius/pep8radius/vcs.py/VersionControl.from_string