Commit c5212eeb authored by Campbell Barton's avatar Campbell Barton
Browse files

Cleanup: minor style edits

parent 086d8b18
......@@ -47,9 +47,10 @@ else:
import enchant
dict_spelling = enchant.Dict("en_US")
from check_spelling_c_config import (dict_custom,
from check_spelling_c_config import (
def words_from_text(text):
......@@ -118,11 +119,12 @@ def words_from_text(text):
class Comment:
__slots__ = ("file",
__slots__ = (
def __init__(self, file, text, line, type):
self.file = file
......@@ -330,7 +332,7 @@ def spell_check_comments_recursive(dirpath):
def source_list(path, filename_check=None):
for dirpath, dirnames, filenames in os.walk(path):
# skip '.svn'
# skip '.git'
if dirpath.startswith("."):
......@@ -341,7 +343,20 @@ def spell_check_comments_recursive(dirpath):
def is_source(filename):
ext = splitext(filename)[1]
return (ext in {".c", ".inl", ".cpp", ".cxx", ".hpp", ".hxx", ".h", ".hh", ".m", ".mm", ".osl", ".py"})
return (ext in {
for filepath in source_list(dirpath, is_source):
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment