Mercurial > cgi-bin > hgweb.cgi > curlyq
diff curlers.py @ 19:f8d0a5201dd7
Remove deadwood.
author | David Barts <n5jrn@me.com> |
---|---|
date | Sat, 28 Dec 2019 00:46:38 -0800 |
parents | b2dab0667ec2 |
children | d3eb798f7e95 |
line wrap: on
line diff
--- a/curlers.py Fri Dec 27 23:28:57 2019 -0800 +++ b/curlers.py Sat Dec 28 00:46:38 2019 -0800 @@ -71,15 +71,6 @@ for self._pos in range(len(self.workspace)): self._state() - def _is_cockney(self): - pos = self._pos - ws = self.workspace - for i in _ASTART: - li = len(i) - print("comparing {0!r} and {1!r}\n".format(ws[pos:pos+li].lower(), i)) - if ws[pos:pos+li].lower() == i and not ws[pos+li].isalpha(): - return True - def _norm(self): pos = self._pos ws = self.workspace @@ -148,15 +139,6 @@ for self._pos in range(len(self.workspace)): self._state() - def _is_cockney(self): - pos = self._pos - ws = self.workspace - for i in _ASTART: - li = len(i) - print("comparing {0!r} and {1!r}\n".format(ws[pos:pos+li].lower(), i)) - if ws[pos:pos+li].lower() == i and not ws[pos+li].isalpha(): - return True - def _goto_lt(self): self._ltpos = self._pos self._ltstate = self._state