utils.py 221 B

12345678
  1. def header(message, top='-', bottom='-'):
  2. '''
  3. Generates a clean header
  4. '''
  5. topheader = (top * 80)[:80]
  6. bottomheader = (bottom * 80)[:80]
  7. return "%s\n %s\n%s" % (topheader, message, bottomheader)