File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
10
10
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
11
11
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
12
12
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
13
- refs/heads/auto: ab0081ae45f959fbf15cc532f8e2f4fa5192c4c5
13
+ refs/heads/auto: f7509df8f9c63454ce70b5e5519c0e09de96158a
14
14
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
15
15
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
16
16
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336
Original file line number Diff line number Diff line change 17
17
# it sugarises all .rs/.rc files underneath the working directory
18
18
#
19
19
20
- import sys , os , fnmatch , re
20
+ import sys
21
+ import os
22
+ import fnmatch
23
+ import re
21
24
22
25
23
26
DOC_PATTERN = '^(?P<indent>[\\ t ]*)#\\ [(\\ s*)doc(\\ s*)=' + \
@@ -85,7 +88,6 @@ def sugarise_file(path):
85
88
if s != ns :
86
89
open (path , 'w' ).write (ns )
87
90
88
-
89
91
for (dirpath , dirnames , filenames ) in os .walk ('.' ):
90
92
for name in fnmatch .filter (filenames , '*.r[sc]' ):
91
93
sugarise_file (os .path .join (dirpath , name ))
You can’t perform that action at this time.
0 commit comments