def generate_mount_url(self, regex, v_or_f, mod):
        if getattr(self, "mounts", None) is None:
            return  # we don't want to mount anything
        if not regex.startswith("/"):
            return regex

        if not mod:
            if isinstance(v_or_f, basestring):
                mod = v_or_f
            else:  # if hasattr(v_or_f, "__module__")?
                mod = v_or_f.__module__

        best_k, best_v = "", None

        for k, v in tuple(self.mounts.items()):
            if mod.startswith(k) and len(k) > len(best_k):
                best_k, best_v = k, v

        if best_k:
            if not best_v:
                return
            if not best_v.endswith("/"):
                best_k += "/"
            if best_v != "/":
                regex = best_v[:-1] + regex

        return regex
Creates a new Table from a file-like object containing CSV data.
dataset/ETHPy150Open amitu/importd/importd/__init__.py/D.generate_mount_url--crossover with--dataset/ETHPy150Open wireservice/csvkit/csvkit/table.py/Table.from_csv