Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 532708 | Differences between
and this patch

Collapse All | Expand All

(-)a/Lib/distutils/cmd.py (-4 / +4 lines)
Lines 52-57 class Command: Link Here
52
        """
52
        """
53
        # late import because of mutual dependence between these classes
53
        # dist should quack like a Distribution (duck-typing avoids a
54
        from distutils.dist import Distribution
54
        # circular dependency and hopefully ameliorates trouble due to
55
55
        # setuptools having monkey patched distutils modules).
56
        if not isinstance(dist, Distribution):
56
        if not hasattr(dist, 'get_requires'):
57
            raise TypeError, "dist must be a Distribution instance"
57
            raise TypeError, "dist must be a Distribution instance"

Return to bug 532708