Mercurial > hg > TextShaper
comparison textshaper/main.py @ 5:0a800613af9a
textshaper/main.py
| author | Jeff Hammel <jhammel@mozilla.com> |
|---|---|
| date | Thu, 26 Sep 2013 02:02:36 -0700 |
| parents | 26bb5e99f76c |
| children | 71fb16088d54 |
comparison
equal
deleted
inserted
replaced
| 4:26bb5e99f76c | 5:0a800613af9a |
|---|---|
| 9 import os | 9 import os |
| 10 import subprocess | 10 import subprocess |
| 11 import sys | 11 import sys |
| 12 import time | 12 import time |
| 13 | 13 |
| 14 def display(content) | 14 def display(content): |
| 15 print content | 15 print content |
| 16 print '--' | 16 print '--' |
| 17 nlines = len(content.splitlines()) | 17 nlines = len(content.splitlines()) |
| 18 print '%d lines' % nlines | 18 print '%d lines' % nlines |
| 19 | 19 |
