Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <campbell@blender.org>2022-04-06 12:08:10 +0300
committerCampbell Barton <campbell@blender.org>2022-04-06 12:08:10 +0300
commit8dd3387eb74566f6c52d5c83f22a8e89a908df2a (patch)
tree12badf8984c8d0ad082104e663c90374e08e110d /release/scripts/modules/bpy_types.py
parent2d2baeaf04d481f284bc2f098fb6d7ee9268151f (diff)
Cleanup: spelling & poor wording in code & comments
Diffstat (limited to 'release/scripts/modules/bpy_types.py')
-rw-r--r--release/scripts/modules/bpy_types.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/release/scripts/modules/bpy_types.py b/release/scripts/modules/bpy_types.py
index 45fd6d29dfa..be60a1711aa 100644
--- a/release/scripts/modules/bpy_types.py
+++ b/release/scripts/modules/bpy_types.py
@@ -9,7 +9,7 @@ StructMetaPropGroup = bpy_types.bpy_struct_meta_idprop
# StructRNA = bpy_types.Struct
# Private dummy object use for comparison only.
-_sentinal = object()
+_sentinel = object()
# Note that methods extended in C are defined in: 'bpy_rna_types_capi.c'
@@ -51,8 +51,8 @@ class Context(StructRNA):
# Retrieve the value for `attr`.
# Match the value error exception with that of "path_resolve"
# to simplify exception handling for the caller.
- value = getattr(self, attr, _sentinal)
- if value is _sentinal:
+ value = getattr(self, attr, _sentinel)
+ if value is _sentinel:
raise ValueError("Path could not be resolved: %r" % attr)
if value is None: