Skip to content
Snippets Groups Projects
Commit 135f5550 authored by Campbell Barton's avatar Campbell Barton
Browse files

style cleanup

parent 4c92a0be
No related branches found
No related tags found
No related merge requests found
...@@ -136,6 +136,7 @@ def check_duplicates(): ...@@ -136,6 +136,7 @@ def check_duplicates():
if test: if test:
print("Invalid 'DUPLICATE_WHITELIST': %r" % test) print("Invalid 'DUPLICATE_WHITELIST': %r" % test)
def main(): def main():
check_duplicates() check_duplicates()
......
...@@ -415,8 +415,6 @@ def blender_check_kw_if(index_kw_start, index_kw, index_kw_end): ...@@ -415,8 +415,6 @@ def blender_check_kw_if(index_kw_start, index_kw, index_kw_end):
del ws_indent del ws_indent
del l_last del l_last
# check for: if () { ... }; # check for: if () { ... };
# #
# no need to have semicolon after brace. # no need to have semicolon after brace.
...@@ -565,7 +563,6 @@ def blender_check_kw_switch(index_kw_start, index_kw, index_kw_end): ...@@ -565,7 +563,6 @@ def blender_check_kw_switch(index_kw_start, index_kw, index_kw_end):
#~ print("Commment '%s'" % tokens[i].text) #~ print("Commment '%s'" % tokens[i].text)
pass pass
elif tokens[i].type == Token.Keyword: elif tokens[i].type == Token.Keyword:
if tokens[i].text in {"break", "return", "continue", "goto"}: if tokens[i].text in {"break", "return", "continue", "goto"}:
if tokens[i_case].line == tokens[i].line: if tokens[i_case].line == tokens[i].line:
...@@ -927,6 +924,7 @@ import re ...@@ -927,6 +924,7 @@ import re
re_ifndef = re.compile("^\s*#\s*ifndef\s+([A-z0-9_]+).*$") re_ifndef = re.compile("^\s*#\s*ifndef\s+([A-z0-9_]+).*$")
re_define = re.compile("^\s*#\s*define\s+([A-z0-9_]+).*$") re_define = re.compile("^\s*#\s*define\s+([A-z0-9_]+).*$")
def quick_check_include_guard(lines): def quick_check_include_guard(lines):
found = 0 found = 0
def_value = "" def_value = ""
...@@ -982,6 +980,7 @@ def quick_check_source(fp, code, args): ...@@ -982,6 +980,7 @@ def quick_check_source(fp, code, args):
quick_check_indentation(lines) quick_check_indentation(lines)
def scan_source(fp, code, args): def scan_source(fp, code, args):
# print("scanning: %r" % fp) # print("scanning: %r" % fp)
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
# this script updates XML themes once new settings are added # this script updates XML themes once new settings are added
# #
# ./blender.bin --background --python source/tools/update_themes.py # ./blender.bin --background --python source/tools/utils/blender_update_themes.py
import bpy import bpy
import os import os
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment