File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -47,19 +47,18 @@ def create_benchmark_file(name):
47
47
and places it in the `single-source` directory.
48
48
"""
49
49
50
- template_path = create_relative_path ("Template.swift" )
51
50
file_text = ""
52
-
51
+ template_path = create_relative_path ( "Template.swift" )
53
52
with open (template_path , "r" ) as f :
54
53
file_text = "" .join (f .readlines ())
55
54
56
55
# fill in missing template details
57
56
file_text = file_text .format (
58
- name = name ,
59
- padding = "-" * (56 - len (name )),
60
- year = datetime .date .today ().year
57
+ name = name ,
58
+ padding = "-" * (56 - len (name )),
59
+ year = datetime .date .today ().year
61
60
)
62
-
61
+
63
62
file_path_prefix = create_relative_path ("../single-source/" )
64
63
file_path = os .path .join (file_path_prefix , name + ".swift" )
65
64
with open (file_path , "w" ) as f :
You can’t perform that action at this time.
0 commit comments