We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab0081a commit f7509dfCopy full SHA for f7509df
src/etc/sugarise-doc-comments.py
@@ -17,7 +17,10 @@
17
# it sugarises all .rs/.rc files underneath the working directory
18
#
19
20
-import sys, os, fnmatch, re
+import sys
21
+import os
22
+import fnmatch
23
+import re
24
25
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
-
91
for (dirpath, dirnames, filenames) in os.walk('.'):
92
for name in fnmatch.filter(filenames, '*.r[sc]'):
93
sugarise_file(os.path.join(dirpath, name))
0 commit comments