Permalink
Browse files

more over the top

  • Loading branch information...
1 parent 030ab23 commit 64a888aab0701405863876e7a342b3499689d0db Benjamin Golub committed Oct 24, 2008
Showing with 3 additions and 3 deletions.
  1. +3 −3 pirate.py
View
@@ -122,8 +122,8 @@ def avast(m, chance):
(r'\bdied\b', 'snuffed it'),
(r'ing\b/', "in'"),
(r'ings\b/', "in's"),
- (r'(\.\s)', partial(avast, chance=3)),
- (r'([!\?]\s)', partial(avast, chance=2)),
+ (r'(\.\s)', partial(avast, chance=1)),
+ (r'([!\?]\s)', partial(avast, chance=1)),
]]
SHOUTS = [
@@ -160,4 +160,4 @@ def avast(m, chance):
if __name__ == '__main__':
import sys
for line in sys.stdin:
- sys.stdout.write(pirate(line))
+ sys.stdout.write(pirate(line))

0 comments on commit 64a888a

Please sign in to comment.