def _to_deprecated_string(self):
        """
        Returns an old-style location, represented as:
        i4x://org/course/category/name[@revision]  # Revision is optional
        """
        # pylint: disable=missing-format-attribute
        url = u"{0.DEPRECATED_TAG}://{0.course_key.org}/{0.course_key.course}/{0.block_type}/{0.block_id}".format(self)
        if self.course_key.branch:
            url += u"@{rev}".format(rev=self.course_key.branch)
        return url
def _to_deprecated_string ( self ) : url = u"{0.DEPRECATED_TAG}://{0.course_key.org}/{0.course_key.course}/{0.block_type}/{0.block_id}" . format ( self ) if self . course_key . branch : url += u"@{rev}" . format ( rev = self . course_key . branch ) return url
Returns an old-style location, represented as:
        i4x://org/course/category/name[@revision]  # Revision is optional