Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
class HeadRequest(urllib2.Request, object):
"""
A request for the HEAD HTTP method.
"""
def get_method(self):
"""
Use the HEAD HTTP method.
"""
return 'HEAD'
class TwistedSphinxInventory(SphinxInventory):
"""
Custom SphinxInventory to work around broken external references to
Sphinx.
All exceptions should be reported upstream and a comment should be created
with a link to the upstream report.
"""
def getLink(self, name):
"""
Resolve the full URL for a cross reference.
@param name: Value of the cross reference.
@type name: L{str}
@return: A full URL for the I{name} reference or L{None} if no link was
class HeadRequest(urllib2.Request):
"""
A request for the HEAD HTTP method.
"""
def get_method(self):
"""
Use the HEAD HTTP method.
"""
return 'HEAD'
class TwistedSphinxInventory(SphinxInventory):
"""
Custom SphinxInventory to work around broken external references to
Sphinx.
All exceptions should be reported upstream and a comment should be created
with a link to the upstream report.
"""
def getLink(self, name):
"""
Resolve the full URL for a cross reference.
@param name: Value of the cross reference.
@type name: L{str}
@return: A full URL for the I{name} reference or L{None} if no link was