@classmethod
    def from_native(cls, regex):
        if not isinstance(regex, RE_TYPE):
            raise TypeError(
                "regex must be a compiled regular expression, not %s"
                % type(regex))

        return Regex(regex.pattern, regex.flags)
Remove built JS files.
dataset/ETHPy150Open mongodb/mongo-python-driver/bson/regex.py/Regex.from_native--crossover with--dataset/ETHPy150Open CenterForOpenScience/osf.io/admin/tasks.py/clean_assets