Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
blender-dev-tools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
blender
blender-dev-tools
Commits
4c92a0be
Commit
4c92a0be
authored
11 years ago
by
Campbell Barton
Browse files
Options
Downloads
Patches
Plain Diff
Left silly name in error message
parent
8c724253
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
check_source/check_style_c.py
+2
-2
2 additions, 2 deletions
check_source/check_style_c.py
with
2 additions
and
2 deletions
check_source/check_style_c.py
+
2
−
2
View file @
4c92a0be
...
@@ -401,7 +401,7 @@ def blender_check_kw_if(index_kw_start, index_kw, index_kw_end):
...
@@ -401,7 +401,7 @@ def blender_check_kw_if(index_kw_start, index_kw, index_kw_end):
# check indentation is good
# check indentation is good
# use startswith because there are function calls within 'if' checks sometimes.
# use startswith because there are function calls within 'if' checks sometimes.
ws_indent_test
=
extract_to_linestart
(
i
+
1
)
ws_indent_test
=
extract_to_linestart
(
i
+
1
)
# print("in
tend testA
: %r %s" % (ws_indent_test, tokens[i].text))
# print("in
dent
: %r %s" % (ws_indent_test, tokens[i].text))
#if ws_indent_test != ws_indent:
#if ws_indent_test != ws_indent:
if
ws_indent_test
.
startswith
(
ws_indent
):
if
ws_indent_test
.
startswith
(
ws_indent
):
...
@@ -410,7 +410,7 @@ def blender_check_kw_if(index_kw_start, index_kw, index_kw_end):
...
@@ -410,7 +410,7 @@ def blender_check_kw_if(index_kw_start, index_kw, index_kw_end):
# needed for some comments
# needed for some comments
pass
pass
else
:
else
:
warning
(
"
TEST123
if body brace mult-line indent mismatch
"
,
i
,
i
)
warning
(
"
if body brace mult-line indent mismatch
"
,
i
,
i
)
del
index_kw_bracket
del
index_kw_bracket
del
ws_indent
del
ws_indent
del
l_last
del
l_last
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment