diff options
-rw-r--r-- | generator/generator_python.ml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/generator/generator_python.ml b/generator/generator_python.ml index dda04146..dc2cd288 100644 --- a/generator/generator_python.ml +++ b/generator/generator_python.ml @@ -567,6 +567,11 @@ initlibguestfsmod (void) (* Generate Python module. *) and generate_python_py () = + (* This has to appear very near the top of the file, before the large + * header. + *) + pr "# coding: utf-8\n"; + generate_header HashStyle LGPLv2plus; pr "\ |