summaryrefslogtreecommitdiff
path: root/codegen.py
diff options
context:
space:
mode:
authorTony Garnock-Jones <tonyg@lshift.net>2008-12-02 16:43:56 +0000
committerTony Garnock-Jones <tonyg@lshift.net>2008-12-02 16:43:56 +0000
commitf3f83f0a6c1430e8add101466179d3a2905eaece (patch)
treed4d49d3fe270ab39945cfda96ef16fb80cd9071b /codegen.py
parent60b0f6703e409f7629ea48017dade4d1c2d9672a (diff)
parentc2ed22d2ca95b856f6f1bb7ee9109a8a4468fb6b (diff)
downloadrabbitmq-server-git-f3f83f0a6c1430e8add101466179d3a2905eaece.tar.gz
merged bug19841 into default
Diffstat (limited to 'codegen.py')
-rw-r--r--codegen.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/codegen.py b/codegen.py
index 5dbc57c7de..629f2b8c3e 100644
--- a/codegen.py
+++ b/codegen.py
@@ -58,7 +58,8 @@ erlangDefaultValueTypeConvMap = {
str : lambda x: "<<\"" + x + "\">>",
int : lambda x: str(x),
float : lambda x: str(x),
- dict: convertTable
+ dict: convertTable,
+ unicode: lambda x: "<<\"" + x.encode("utf-8") + "\">>"
}
def erlangize(s):