@@ -152,13 +152,12 @@ def __main(
152152 The main entry point.
153153 """
154154 base_directory , config = load_config_from_options (directory , config_file )
155- to_err = draft
156155
157- click .echo ("Loading template..." , err = to_err )
156+ click .echo ("Loading template..." )
158157 with open (config .template , "rb" ) as tmpl :
159158 template = tmpl .read ().decode ("utf8" )
160159
161- click .echo ("Finding news fragments..." , err = to_err )
160+ click .echo ("Finding news fragments..." )
162161
163162 if config .directory is not None :
164163 fragment_base_directory = os .path .abspath (config .directory )
@@ -177,7 +176,7 @@ def __main(
177176 config .orphan_prefix ,
178177 )
179178
180- click .echo ("Rendering news fragments..." , err = to_err )
179+ click .echo ("Rendering news fragments..." )
181180 fragments = split_fragments (
182181 fragment_contents , config .types , all_bullets = config .all_bullets
183182 )
@@ -250,13 +249,12 @@ def __main(
250249 if draft and filename is None :
251250 click .echo (
252251 "Print draft to stdout only -- nothing has been written.\n "
253- "What is seen below is what would be written.\n " ,
254- err = to_err ,
252+ "What is seen below is what would be written.\n "
255253 )
256254 click .echo (content )
257255 return
258256
259- click .echo ("Writing to newsfile..." , err = to_err )
257+ click .echo ("Writing to newsfile..." )
260258
261259 if filename is None :
262260 filename = config .filename
@@ -282,18 +280,18 @@ def __main(
282280 )
283281
284282 if not draft :
285- click .echo ("Staging newsfile..." , err = to_err )
283+ click .echo ("Staging newsfile..." )
286284 _git .stage_newsfile (base_directory , filename )
287285
288286 if should_remove_fragment_files (
289287 fragment_filenames ,
290288 answer_yes ,
291289 answer_keep ,
292290 ):
293- click .echo ("Removing news fragments..." , err = to_err )
291+ click .echo ("Removing news fragments..." )
294292 _git .remove_files (fragment_filenames )
295293
296- click .echo ("Done!" , err = to_err )
294+ click .echo ("Done!" )
297295
298296
299297def should_remove_fragment_files (
0 commit comments