Fix PEP8 in sugarise-doc-comments
This commit is contained in:
parent
ab0081ae45
commit
f7509df8f9
1 changed files with 4 additions and 2 deletions
|
@ -17,7 +17,10 @@
|
|||
# it sugarises all .rs/.rc files underneath the working directory
|
||||
#
|
||||
|
||||
import sys, os, fnmatch, re
|
||||
import sys
|
||||
import os
|
||||
import fnmatch
|
||||
import re
|
||||
|
||||
|
||||
DOC_PATTERN = '^(?P<indent>[\\t ]*)#\\[(\\s*)doc(\\s*)=' + \
|
||||
|
@ -85,7 +88,6 @@ def sugarise_file(path):
|
|||
if s != ns:
|
||||
open(path, 'w').write(ns)
|
||||
|
||||
|
||||
for (dirpath, dirnames, filenames) in os.walk('.'):
|
||||
for name in fnmatch.filter(filenames, '*.r[sc]'):
|
||||
sugarise_file(os.path.join(dirpath, name))
|
||||
|
|
Loading…
Reference in a new issue