Mercurial > python-cmd2
comparison lineend.py @ 63:a96f824d1a24
use searchString
author | catherine@Elli.myhome.westell.com |
---|---|
date | Sat, 21 Jun 2008 19:46:33 -0400 |
parents | 95e239c87010 |
children | a0f7702f2a4b |
comparison
equal
deleted
inserted
replaced
62:95e239c87010 | 63:a96f824d1a24 |
---|---|
43 result['outputTo'] = found[0][1].strip() | 43 result['outputTo'] = found[0][1].strip() |
44 else: | 44 else: |
45 result['inputFrom'] = found[0][1].strip() | 45 result['inputFrom'] = found[0][1].strip() |
46 found = pipe_pattern.searchString(txt) | 46 found = pipe_pattern.searchString(txt) |
47 if found: | 47 if found: |
48 result['pipeTo'] = found[0][1] | 48 result['pipeTo'] = found[0][1].strip() |
49 | 49 |
50 return result | 50 return result |
51 | 51 |
52 if __name__ == '__main__': | 52 if __name__ == '__main__': |
53 doctest.testmod() | 53 doctest.testmod() |