Skip to content

Commit 76e7ecf

Browse files
STY: Further simplification
Co-authored-by: Chris Markiewicz <[email protected]>
1 parent c2a8906 commit 76e7ecf

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

nipype/interfaces/slicer/generate_classes.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,7 @@ def force_to_valid_python_variable_name(old_name):
3333

3434
def add_class_to_package(class_codes, class_names, module_name, package_dir):
3535
module_python_filename = os.path.join(package_dir, "%s.py" % module_name)
36-
with (
37-
open(module_python_filename, "w") as f_m,
38-
open(os.path.join(package_dir, "__init__.py"), "a+") as f_i,
39-
):
36+
with open(module_python_filename, "w") as f_m:
4037
f_m.write(
4138
"""# -*- coding: utf-8 -*-
4239
\"\"\"Autogenerated file - DO NOT EDIT

0 commit comments

Comments
 (0)