Skip to content

Commit de14916

Browse files
committed
added utf-8 headers
1 parent 345fd77 commit de14916

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

nipype/interfaces/slicer/generate_classes.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ def add_class_to_package(class_codes, class_names, module_name, package_dir):
3333
module_python_filename = os.path.join(package_dir, "%s.py" % module_name)
3434
f_m = open(module_python_filename, 'w')
3535
f_i = open(os.path.join(package_dir, "__init__.py"), 'a+')
36-
f_m.write("""\"\"\"Autogenerated file - DO NOT EDIT
36+
f_m.write("""# -*- coding: utf8 -*-
37+
\"\"\"Autogenerated file - DO NOT EDIT
3738
If you spot a bug, please report it on the mailing list and/or change the generator.\"\"\"\n\n""")
3839
imports = """from nipype.interfaces.base import CommandLine, CommandLineInputSpec, TraitedSpec, File, Directory, traits, isdefined, InputMultiPath, OutputMultiPath
3940
import os

nipype/interfaces/slicer/legacy/filtering.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# -*- coding: utf8 -*-
12
"""Autogenerated file - DO NOT EDIT
23
If you spot a bug, please report it on the mailing list and/or change the generator."""
34

0 commit comments

Comments
 (0)