File tree Expand file tree Collapse file tree 2 files changed +13
-12
lines changed Expand file tree Collapse file tree 2 files changed +13
-12
lines changed Original file line number Diff line number Diff line change
1
+ import os
2
+ import shutil
3
+
4
+ from blurb ._cli import subcommand
5
+
6
+
7
+ @subcommand
8
+ def export () -> None :
9
+ """Removes blurb data files, for building release tarballs/installers."""
10
+ os .chdir ('Misc' )
11
+ shutil .rmtree ('NEWS.d' , ignore_errors = True )
Original file line number Diff line number Diff line change 45
45
import itertools
46
46
import os
47
47
import re
48
- import shutil
49
48
import sys
50
49
import textwrap
51
50
import time
52
51
53
- from blurb ._cli import main , subcommand
54
- from blurb ._git import git_add_files , flush_git_add_files
55
52
from blurb ._template import (
56
53
next_filename_unsanitize_sections , sanitize_section ,
57
54
sanitize_section_legacy , sections , unsanitize_section ,
@@ -474,14 +471,7 @@ def error(*a):
474
471
sys .exit ("Error: " + s )
475
472
476
473
477
- @subcommand
478
- def export ():
479
- """
480
- Removes blurb data files, for building release tarballs/installers.
481
- """
482
- os .chdir ("Misc" )
483
- shutil .rmtree ("NEWS.d" , ignore_errors = True )
484
-
485
-
486
474
if __name__ == '__main__' :
475
+ from blurb ._cli import main
476
+
487
477
main ()
You can’t perform that action at this time.
0 commit comments