Make sure generated python passes isort checks

This commit is contained in:
Shahram Najm 2022-12-08 15:42:40 +00:00
parent ee6a747f18
commit 923bc5ff61
1 changed files with 2 additions and 2 deletions

View File

@ -869,9 +869,9 @@ static void header(grib_dumper* d, grib_handle* h)
fprintf(self->dumper.out, "# Using ecCodes version: ");
grib_print_api_version(self->dumper.out);
fprintf(self->dumper.out, "\n\n");
fprintf(self->dumper.out, "from __future__ import print_function\n");
fprintf(self->dumper.out, "import traceback\n");
fprintf(self->dumper.out, "from __future__ import print_function\n\n");
fprintf(self->dumper.out, "import sys\n");
fprintf(self->dumper.out, "import traceback\n\n");
fprintf(self->dumper.out, "from eccodes import *\n\n\n");
fprintf(self->dumper.out, "def bufr_encode():\n");
}