diff curlers.py @ 4:7a83e82e65a6

Remove some deadwood.
author David Barts <n5jrn@me.com>
date Thu, 26 Dec 2019 20:04:04 -0800
parents 091c03f1b2e8
children da3fb2312c88
line wrap: on
line diff
--- a/curlers.py	Thu Dec 26 19:54:45 2019 -0800
+++ b/curlers.py	Thu Dec 26 20:04:04 2019 -0800
@@ -32,6 +32,17 @@
 
 # F u n c t i o n s
 
+def uncurl(ws):
+    """
+    Makes all quotes in the workspace non-curly.
+    """
+    for i in range(len(ws)):
+        ch = ws[i]
+        if ch in set([LDQUO, RDQUO]):
+            ws[i] = '"'
+        elif ch in set([LSQUO, RSQUO]):
+            ws[i] = "'"
+
 def _is_cockney(pos, ws):
     pos = self._pos
     ws = self.workspace