Exemplo n.º 1
0
def get_theaters(city):
    """Get list of theaters by desired `city` from txt file

    :city: str
    :returns: list of theaters (str)
    """
    dirname = os.path.dirname(os.path.realpath(__file__))
    return get_from_file(suffix=city, prefix='theaters', dirname=dirname)
Exemplo n.º 2
0
def get_movies_from_file(f, **kwargs):
    """
    path/to/file -> list of movienames
    """
    movie_names = get_from_file(f=f)
    movie_times = [''] * len(movie_names)

    return movie_names, movie_times  # appropriately sized list of empty strings
Exemplo n.º 3
0
def get_beers_from_file(f):
    """
    path/to/file -> list of beernames
    """
    return get_from_file(f=f)