Skip to content

Commit

Permalink
[python] Get rid of blank lines between imports, add one blank line a…
Browse files Browse the repository at this point in the history
…fter all imports.
  • Loading branch information
nadako committed Jul 29, 2014
1 parent c8ee08b commit 266b9bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions genpy.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1943,7 +1943,6 @@ module Generator = struct
(* importing a class from a module *)
"from " ^ module_name ^ " import " ^ object_name ^ " as " ^ class_name
in
if Buffer.length ctx.buf > 0 then newline ctx;
if ignore_error then begin
spr_line ctx "try:";
spr ctx "\t";
Expand Down Expand Up @@ -2130,7 +2129,8 @@ module Generator = struct
match mt with
| TClassDecl c when c.cl_extern -> gen_import ctx c
| _ -> ()
) ctx.com.types
) ctx.com.types;
newline ctx

let gen_types ctx =
let used_paths = Hashtbl.create 0 in
Expand Down

0 comments on commit 266b9bf

Please sign in to comment.