diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-12-01 03:05:16 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-12-01 03:05:16 +0300 |
commit | a444e8cc19a4353ce35ecdec9bb7894ee73a204a (patch) | |
tree | 2caea22db0925f1e068fee7a35bbfe5fe88b46dd /rigify | |
parent | 1d91e8c12a25618c308fcd25108bf36af0f27094 (diff) |
Cleanup: quiet character escape warnings
Diffstat (limited to 'rigify')
-rw-r--r-- | rigify/generate.py | 2 | ||||
-rw-r--r-- | rigify/rigs/faces/super_face.py | 4 | ||||
-rw-r--r-- | rigify/rigs/limbs/super_palm.py | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/rigify/generate.py b/rigify/generate.py index a2d9a5d1..501c335f 100644 --- a/rigify/generate.py +++ b/rigify/generate.py @@ -258,7 +258,7 @@ class Generator(base_generate.BaseGenerator): for tar in var.targets: # If a custom property if var.type == 'SINGLE_PROP' \ - and re.match('^pose.bones\["[^"\]]*"\]\["[^"\]]*"\]$', tar.data_path): + and re.match(r'^pose.bones\["[^"\]]*"\]\["[^"\]]*"\]$', tar.data_path): tar.data_path = "RIGIFY-" + tar.data_path diff --git a/rigify/rigs/faces/super_face.py b/rigify/rigs/faces/super_face.py index 312ecf56..32d013a7 100644 --- a/rigify/rigs/faces/super_face.py +++ b/rigify/rigs/faces/super_face.py @@ -71,8 +71,8 @@ class Rig: # RE pattern match right or left parts # match the letter "L" (or "R"), followed by an optional dot (".") # and 0 or more digits at the end of the the string - left_pattern = 'L\.?\d*$' - right_pattern = 'R\.?\d*$' + left_pattern = r'L\.?\d*$' + right_pattern = r'R\.?\d*$' left = sorted( [ name for name in bones if re.search( left_pattern, name ) ] ) right = sorted( [ name for name in bones if re.search( right_pattern, name ) ] ) diff --git a/rigify/rigs/limbs/super_palm.py b/rigify/rigs/limbs/super_palm.py index 47d5eaf3..7573e4a7 100644 --- a/rigify/rigs/limbs/super_palm.py +++ b/rigify/rigs/limbs/super_palm.py @@ -77,7 +77,7 @@ class Rig(BaseRig): self.order = 'YXZ' if 'X' in self.palm_rotation_axis else 'YZX' # Figure out the name for the control bone (remove the last .##) - self.ctrl_name = re.sub("([0-9]+\.)", "", strip_org(self.bones.org[-1])[::-1], count=1)[::-1] + self.ctrl_name = re.sub(r"([0-9]+\.)", "", strip_org(self.bones.org[-1])[::-1], count=1)[::-1] def parent_bones(self): self.rig_parent_bone = self.get_bone_parent(self.bones.org[0]) |