summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarol Skocik <karol@lshift.net>2008-08-26 15:25:16 +0100
committerKarol Skocik <karol@lshift.net>2008-08-26 15:25:16 +0100
commit7d62d02e18f6ee9238515c486a3a5fb38def0252 (patch)
treee3f3a777fd9bf94993d5abd0825f0b9d2f31d22d
parent3977f113790eb941acd9ec3ae042bc463c246852 (diff)
downloadrabbitmq-server-7d62d02e18f6ee9238515c486a3a5fb38def0252.tar.gz
fixed bug in emitting erlang binary string
-rw-r--r--codegen.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/codegen.py b/codegen.py
index 7d830efa..4785b18c 100644
--- a/codegen.py
+++ b/codegen.py
@@ -47,7 +47,7 @@ erlangTypeMap = {
erlangDefaultValueTypeConvMap = {
bool : lambda x: str(x).lower(),
- str : lambda x: "<<" + x + ">>",
+ str : lambda x: "<<\"" + x + "\">>",
int : lambda x: str(x),
float : lambda x: str(x)
}