Here are the examples of the python api django.utils.six.moves.urllib.request.HTTPRedirectHandler.http_error_301 taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

Example 1

Project: django-linkcheck
Source File:
View license
    def http_error_301(self, req, fp, code, *args):
        result = HTTPRedirectHandler.http_error_301(self, req, fp, code, *args)
        if result:
            result.code = result.status = code
        return result