'@param type_: version control type (e.g. \'svn\'). must be non empty
@type  type_: str
@param url: URL associated with version control. must be non empty
@type  url: str'

def __init__(self, type_, url):

    def is_string_type(obj):
        try:
            return isinstance(obj, basestring)
        except NameError:
            return isinstance(obj, str)
    if ((not type_) or (not is_string_type(type_))):
        raise ValueError("bad    'type'    attribute")
    if ((not (url is None)) and (not is_string_type(url))):
        raise ValueError("bad    'url'    attribute")
    self.type = type_
    self.url = url
