Skip to content

Commit

Permalink
[python] fix string printing
Browse files Browse the repository at this point in the history
  • Loading branch information
frabbit committed Mar 15, 2015
1 parent a9ff6ec commit 6b24fc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion genpy.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1612,7 +1612,7 @@ module Printer = struct
if has_feature pctx "haxe.Log.trace" then begin
"haxe_Log.trace(" ^ (print_expr pctx e) ^ "," ^ (print_expr pctx infos) ^ ")"
end else begin match e.eexpr with
| TConst(TString(s)) -> "print(\"" ^ s ^ "\")"
| TConst(TString(s)) -> "print(" ^ (print_expr pctx e) ^ ")"
| _ -> "print(str(" ^ (print_expr pctx e) ^ "))"
end
| TField(e1,((FAnon {cf_name = (("join" | "push" | "map" | "filter") as s)}) | FDynamic (("join" | "push" | "map" | "filter") as s))), [x] ->
Expand Down

0 comments on commit 6b24fc0

Please sign in to comment.