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