[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [53905] trunk/blender/source: patch [ #33924] Spelling Corrections
Campbell Barton
ideasman42 at gmail.com
Sat Jan 19 04:04:56 CET 2013
Revision: 53905
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=53905
Author: campbellbarton
Date: 2013-01-19 03:04:51 +0000 (Sat, 19 Jan 2013)
Log Message:
-----------
patch [#33924] Spelling Corrections
from Gavin Howard (gdh)
Modified Paths:
--------------
trunk/blender/source/blender/makesrna/intern/rna_color.c
trunk/blender/source/tests/batch_import.py
trunk/blender/source/tests/bl_load_addons.py
trunk/blender/source/tests/bl_load_py_modules.py
trunk/blender/source/tests/bl_mesh_modifiers.py
trunk/blender/source/tests/bl_mesh_validate.py
trunk/blender/source/tests/pep8.py
trunk/blender/source/tests/rna_info_dump.py
trunk/blender/source/tools/MakeGLStipple.py
trunk/blender/source/tools/spell_check_source.py
trunk/blender/source/tools/spell_check_source_config.py
Modified: trunk/blender/source/blender/makesrna/intern/rna_color.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_color.c 2013-01-19 02:37:04 UTC (rev 53904)
+++ trunk/blender/source/blender/makesrna/intern/rna_color.c 2013-01-19 03:04:51 UTC (rev 53905)
@@ -848,7 +848,7 @@
prop = RNA_def_property(srna, "show_line", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "flag", HISTO_FLAG_LINE);
- RNA_def_property_ui_text(prop, "Show Line", "Display lines rather then filled shapes");
+ RNA_def_property_ui_text(prop, "Show Line", "Display lines rather than filled shapes");
RNA_def_property_ui_icon(prop, ICON_IPO, 0);
}
Modified: trunk/blender/source/tests/batch_import.py
===================================================================
--- trunk/blender/source/tests/batch_import.py 2013-01-19 02:37:04 UTC (rev 53904)
+++ trunk/blender/source/tests/batch_import.py 2013-01-19 03:04:51 UTC (rev 53905)
@@ -112,7 +112,7 @@
for i, f in enumerate(files):
print(" %s(filepath=%r) # %d of %d" % (operator, f, i + start, len(files)))
- # hack so loading the new file doesnt undo our loaded addons
+ # hack so loading the new file doesn't undo our loaded addons
addon_utils.reset_all = lambda: None # XXX, hack
bpy.ops.wm.read_factory_settings()
Modified: trunk/blender/source/tests/bl_load_addons.py
===================================================================
--- trunk/blender/source/tests/bl_load_addons.py 2013-01-19 02:37:04 UTC (rev 53904)
+++ trunk/blender/source/tests/bl_load_addons.py 2013-01-19 03:04:51 UTC (rev 53905)
@@ -87,7 +87,7 @@
imp.reload(sys.modules[mod_name])
if do_reverse:
- # in case order matters when it shouldnt
+ # in case order matters when it shouldn't
modules.reverse()
Modified: trunk/blender/source/tests/bl_load_py_modules.py
===================================================================
--- trunk/blender/source/tests/bl_load_py_modules.py 2013-01-19 02:37:04 UTC (rev 53904)
+++ trunk/blender/source/tests/bl_load_py_modules.py 2013-01-19 03:04:51 UTC (rev 53905)
@@ -107,7 +107,7 @@
modules.append(mod_imp)
#
- # check which filepaths we didnt load
+ # check which filepaths we didn't load
source_files = []
for mod_dir in module_paths:
source_files.extend(source_list(mod_dir, filename_check=lambda f: f.endswith(".py")))
Modified: trunk/blender/source/tests/bl_mesh_modifiers.py
===================================================================
--- trunk/blender/source/tests/bl_mesh_modifiers.py 2013-01-19 02:37:04 UTC (rev 53904)
+++ trunk/blender/source/tests/bl_mesh_modifiers.py 2013-01-19 03:04:51 UTC (rev 53905)
@@ -34,7 +34,7 @@
IS_BMESH = hasattr(__import__("bpy").types, "LoopColors")
# -----------------------------------------------------------------------------
-# utility funcs
+# utility functions
def render_gl(context, filepath, shade):
@@ -147,7 +147,7 @@
def ctx_camera_setup(context,
location=(0.0, 0.0, 0.0),
lookat=(0.0, 0.0, 0.0),
- # most likely the followuing vars can be left as defaults
+ # most likely the following vars can be left as defaults
up=(0.0, 0.0, 1.0),
lookat_axis='-Z',
up_axis='Y',
@@ -258,7 +258,7 @@
uv_lay = obj.data.uv_textures.new()
if IS_BMESH:
- # XXX, odd that we need to do this. until uvs and texface
+ # XXX, odd that we need to do this. until UV's and texface
# are separated we will need to keep it
uv_loops = obj.data.uv_layers[-1]
uv_list = uv_loops.data[:]
Modified: trunk/blender/source/tests/bl_mesh_validate.py
===================================================================
--- trunk/blender/source/tests/bl_mesh_validate.py 2013-01-19 02:37:04 UTC (rev 53904)
+++ trunk/blender/source/tests/bl_mesh_validate.py 2013-01-19 03:04:51 UTC (rev 53905)
@@ -98,7 +98,7 @@
data.loops.add(len(m[2]))
for idx, v in enumerate(m[2]):
data.loops[idx].vertex_index = v
- # Polys.
+ # Polygons.
data.polygons.add(len(m[3]))
for idx, l in enumerate(m[3]):
data.polygons[idx].loop_start = l[0]
@@ -131,7 +131,7 @@
data.loops[l].edge_index = \
random.randrange(0, len(data.edges) * 2)
elif rnd == 3:
- # Make fun with some poly.
+ # Make fun with some polygons.
p = random.randrange(0, len(data.polygons))
if random.randint(0, 1):
data.polygons[p].loop_start = \
Modified: trunk/blender/source/tests/pep8.py
===================================================================
--- trunk/blender/source/tests/pep8.py 2013-01-19 02:37:04 UTC (rev 53904)
+++ trunk/blender/source/tests/pep8.py 2013-01-19 03:04:51 UTC (rev 53905)
@@ -21,20 +21,20 @@
import os
# depends on pep8, pyflakes, pylint
-# for ubuntu
+# for Ubuntu
#
# sudo apt-get install pylint pyflakes
#
# sudo apt-get install python-setuptools python-pip
# sudo pip install pep8
#
-# in debian install pylint pyflakes pep8 with apt-get/aptitude/etc
+# in Debian install pylint pyflakes pep8 with apt-get/aptitude/etc
#
# on *nix run
# python source/tests/pep8.py > test_pep8.log 2>&1
# how many lines to read into the file, pep8 comment
-# should be directly after the licence header, ~20 in most cases
+# should be directly after the license header, ~20 in most cases
PEP8_SEEK_COMMENT = 40
SKIP_PREFIX = "./tools", "./config", "./scons", "./extern"
FORCE_PEP8_ALL = False
@@ -115,7 +115,7 @@
# let pep8 complain about line length
os.system("pylint "
"--disable="
- "C0111," # missing docstring
+ "C0111," # missing doc string
"C0103," # invalid name
"W0613," # unused argument, may add this back
# but happens a lot for 'context' for eg.
Modified: trunk/blender/source/tests/rna_info_dump.py
===================================================================
--- trunk/blender/source/tests/rna_info_dump.py 2013-01-19 02:37:04 UTC (rev 53904)
+++ trunk/blender/source/tests/rna_info_dump.py 2013-01-19 03:04:51 UTC (rev 53905)
@@ -18,7 +18,7 @@
# <pep8 compliant>
-# Used for generating API diff's between releases
+# Used for generating API diffs between releases
# ./blender.bin --background -noaudio --python source/tests/rna_info_dump.py
import bpy
Modified: trunk/blender/source/tools/MakeGLStipple.py
===================================================================
--- trunk/blender/source/tools/MakeGLStipple.py 2013-01-19 02:37:04 UTC (rev 53904)
+++ trunk/blender/source/tools/MakeGLStipple.py 2013-01-19 03:04:51 UTC (rev 53905)
@@ -19,7 +19,7 @@
# <pep8-80 compliant>
# Converts 32x32 XPM images written be the gimp to GL stipples
-# takes xpm files as arguments, prints out C style definitions.
+# takes XPM files as arguments, prints out C style definitions.
import sys
import os
Modified: trunk/blender/source/tools/spell_check_source.py
===================================================================
--- trunk/blender/source/tools/spell_check_source.py 2013-01-19 02:37:04 UTC (rev 53904)
+++ trunk/blender/source/tools/spell_check_source.py 2013-01-19 03:04:51 UTC (rev 53905)
@@ -157,7 +157,7 @@
Extracts comments like this:
/*
- * This is a multiline comment, notice the '*'s are aligned.
+ * This is a multi-line comment, notice the '*'s are aligned.
*/
"""
i = 0
@@ -213,7 +213,7 @@
block = text[i:i_next + len(END)]
- # add whitespace infront of the block (for alignment test)
+ # add whitespace in front of the block (for alignment test)
ws = []
j = i
while j > 0 and text[j - 1] != "\n":
Modified: trunk/blender/source/tools/spell_check_source_config.py
===================================================================
--- trunk/blender/source/tools/spell_check_source_config.py 2013-01-19 02:37:04 UTC (rev 53904)
+++ trunk/blender/source/tools/spell_check_source_config.py 2013-01-19 03:04:51 UTC (rev 53905)
@@ -40,7 +40,8 @@
"enum", "enums",
"int", "ints",
"tuple", "tuples",
- # python funcs
+
+ # python functions
"repr",
"func",
@@ -69,6 +70,8 @@
"metadata",
"hashable",
"stdin",
+ "stdout",
+ "stdin",
"opengl",
"boids",
"keymap",
@@ -78,8 +81,20 @@
"booleans",
"intrinsics",
"xml",
+ "XXX",
+ "segfault",
+ "wiki",
+ "foo",
+ "diff",
+ "diffs",
+ "sudo",
+ "http",
+ "url",
+ "usr",
+ "env",
+ "app",
- # spesific computer terms/brands
+ # specific computer terms/brands
"posix",
"unix",
"amiga",
@@ -87,6 +102,8 @@
"mozilla",
"irix",
"kde",
+ "qtcreator",
+ "ack",
# general computer graphics terms
"colinear",
@@ -108,12 +125,18 @@
"normals",
# blender terms
+ "bmain",
+ "bmesh",
"bpy",
+ "bge",
"mathutils",
"fcurve",
"animviz",
"animsys",
"eekadoodle",
+ "editmode",
+ "obdata",
+ "doctree",
# should have apostrophe but ignore for now
# unless we want to get really picky!
@@ -147,6 +170,8 @@
"a-z",
"id-block",
"node-trees",
+ "pyflakes",
+ "pylint",
# acronyms
"nan",
@@ -162,6 +187,12 @@
"lhs",
"ik",
"smpte",
+ "svn",
+ "hg",
+ "rst",
+ "gl",
+ "py",
+ "xpm",
# tags
"fixme",
More information about the Bf-blender-cvs
mailing list