Adding earmufs

This commit is contained in:
Paul Tagliamonte 2013-01-08 21:28:49 -05:00
parent b9e0084b76
commit 2b7e3b3cc1

View File

@ -28,6 +28,11 @@ def _resolve_atom(value, self):
except ValueError:
pass
# LISP Variants tend to use *foo* for constants. Let's make it
# the more pythonic "FOO"
if value.startswith("*") and value.endswith("*") and len(value) > 1:
value = value.upper()[1:-1]
# LISP Variants have a tendency to use "-" in symbols n' shit.
if value != "-": # we need subtraction
value = value.replace("-", "_")