Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 2723194025
Fetching contributors…

Cannot retrieve contributors at this time

11 lines (7 sloc) 0.269 kB
from random import choice
class QuotationSelector(object):
def __init__(self, quotes_filename):
with open(quotes_filename) as quotes_file:
self.quotes = quotes_file.readlines()
def select(self):
return choice(self.quotes).strip()
Jump to Line
Something went wrong with that request. Please try again.