[esmre commit] r43 - branches/groups/src

1 view
Skip to first unread message

codesite...@google.com

unread,
Oct 1, 2008, 12:00:27 PM10/1/08
to esmre-c...@googlegroups.com
Author: wharris
Date: Wed Oct 1 09:00:20 2008
New Revision: 43

Modified:
branches/groups/src/esmre.py

Log:
Refactor: simplify append_to_current_hint.

self.to_append is a single character or empty.


Modified: branches/groups/src/esmre.py
==============================================================================
--- branches/groups/src/esmre.py (original)
+++ branches/groups/src/esmre.py Wed Oct 1 09:00:20 2008
@@ -101,8 +101,7 @@
self.hints = []

def append_to_current_hint(self, ch):
- if self.to_append:
- self.hints[-1] += self.to_append
+ self.hints[-1] += self.to_append

self.to_append = ch

Reply all
Reply to author
Forward
0 new messages