(self)
return False
Check if registry is of type v1
Check if registry is of type v1
Check if registry is of type v1
def is_v1(self):
        """Check if registry is of type v1"""
        for prefix in ("/v1", "/v1/_ping"):
            (hdr, dummy) = self._get_url(self.index_url + prefix)
            try:
                if ("200" in hdr.data["X-ND-HTTPSTATUS"] or
                        "401" in hdr.data["X-ND-HTTPSTATUS"]):
                    return True
            except (KeyError, AttributeError, TypeError):
                pass
        return False
def is_v1 ( self ) : for prefix in ( "/v1" , "/v1/_ping" ) : ( hdr , dummy ) = self . _get_url ( self . index_url + prefix ) try : if ( "200" in hdr . data [ "X-ND-HTTPSTATUS" ] or "401" in hdr . data [ "X-ND-HTTPSTATUS" ] ) : return True except ( KeyError , AttributeError , TypeError ) : pass return False