def __init__(self, client, name):
        """
        Returns a new ``Table`` instance.

        :param client: A :class:`RiakClient <riak.client.RiakClient>`
               instance
        :type client: :class:`RiakClient <riak.client.RiakClient>`
        :param name: The table's name
        :type name: string
        """
        if not isinstance(name, string_types):
            raise TypeError('Table name must be a string')

        if PY2:
            try:
                name = name.encode('ascii')
            except UnicodeError:
                raise TypeError('Unicode table names are not supported.')

        self._client = client
        self.name = name
def __init__ ( self , client , name ) : if not isinstance ( name , string_types ) : raise TypeError ( 'Table name must be a string' ) if PY2 : try : name = name . encode ( 'ascii' ) except UnicodeError : raise TypeError ( 'Unicode table names are not supported.' ) self . _client = client self . name = name
Returns a new ``Table`` instance.

        :param client: A :class:`RiakClient <riak.client.RiakClient>`
               instance
        :type client: :class:`RiakClient <riak.client.RiakClient>`
        :param name: The table's name
        :type name: string