From f7509df8f9c63454ce70b5e5519c0e09de96158a Mon Sep 17 00:00:00 2001 From: Richo Healey Date: Tue, 27 Jan 2015 00:22:50 -0800 Subject: [PATCH] Fix PEP8 in sugarise-doc-comments --- src/etc/sugarise-doc-comments.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/etc/sugarise-doc-comments.py b/src/etc/sugarise-doc-comments.py index 7d4ad749fe3..62870f3ed47 100755 --- a/src/etc/sugarise-doc-comments.py +++ b/src/etc/sugarise-doc-comments.py @@ -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[\\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))