def tileset_info(filename):
 if (not tileset_exists(filename)):
  return None
 db = _connect(filename)
 db.text_factory = bytes
 info = []
 for key in ('name', 'type', 'version', 'description', 'format', 'bounds'):
  value = db.execute('SELECT value FROM metadata WHERE name = ?', (key,)).fetchone()
  info.append(((value and value[0]) or None))
 return info

def tileset_info ( filename ) : if ( not tileset_exists ( filename ) ) : return None db = _connect ( filename ) db . text_factory = bytes info = [ ] for key in ( 'name' , 'type' , 'version' , 'description' , 'format' , 'bounds' ) : value = db . execute ( 'SELECT value FROM metadata WHERE name = ?' , ( key , ) ) . fetchone ( ) info . append ( ( ( value and value [ 0 ] ) or None ) ) return info
return name .