Browse Source

[python] use waneck escaping instead of base64 here too

Simon Krajewski 10 years ago
parent
commit
d5ff51a298
1 changed files with 1 additions and 1 deletions
  1. 1 1
      genpy.ml

+ 1 - 1
genpy.ml

@@ -2137,7 +2137,7 @@ module Generator = struct
 				end else
 					","
 				in
-				let k_enc = Base64.str_encode k in
+				let k_enc = Codegen.escape_res_name k false in
 				let slash_index = try (String.rindex ctx.com.file '/')+1 with Not_found -> 0 in
 				let len = String.length ctx.com.file - slash_index in
 				let file_name = String.sub ctx.com.file slash_index len in