Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f7509df

Browse files
committedJan 27, 2015
Fix PEP8 in sugarise-doc-comments
1 parent ab0081a commit f7509df

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed
 

‎src/etc/sugarise-doc-comments.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@
1717
# it sugarises all .rs/.rc files underneath the working directory
1818
#
1919

20-
import sys, os, fnmatch, re
20+
import sys
21+
import os
22+
import fnmatch
23+
import re
2124

2225

2326
DOC_PATTERN = '^(?P<indent>[\\t ]*)#\\[(\\s*)doc(\\s*)=' + \
@@ -85,7 +88,6 @@ def sugarise_file(path):
8588
if s != ns:
8689
open(path, 'w').write(ns)
8790

88-
8991
for (dirpath, dirnames, filenames) in os.walk('.'):
9092
for name in fnmatch.filter(filenames, '*.r[sc]'):
9193
sugarise_file(os.path.join(dirpath, name))

0 commit comments

Comments
 (0)
Please sign in to comment.