Skip to content

Commit a57e69a

Browse files
committed
Fix deprecation warning on regex
1 parent 2e8d674 commit a57e69a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

cadquery/selectors.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -191,14 +191,14 @@ def filter(self, objectList: Sequence[Shape]) -> List[Shape]:
191191

192192

193193
class ParallelDirSelector(BaseDirSelector):
194-
"""
194+
r"""
195195
Selects objects parallel with the provided direction.
196196
197197
Applicability:
198198
Linear Edges
199199
Planar Faces
200200
201-
Use the string syntax shortcut \|(X|Y|Z) if you want to select based on a cardinal direction.
201+
Use the string syntax shortcut |(X|Y|Z) if you want to select based on a cardinal direction.
202202
203203
Example::
204204
@@ -677,9 +677,9 @@ def _getVector(self, pr):
677677
return self.axes[pr.simple_dir]
678678

679679
def filter(self, objectList):
680-
"""
680+
r"""
681681
selects minimum, maximum, positive or negative values relative to a direction
682-
[+\|-\|<\|>\|] \<X\|Y\|Z>
682+
[+|-|<|>|] <X|Y|Z>
683683
"""
684684
return self.mySelector.filter(objectList)
685685

@@ -740,7 +740,7 @@ def not_callback(res):
740740

741741

742742
class StringSyntaxSelector(Selector):
743-
"""
743+
r"""
744744
Filter lists objects using a simple string syntax. All of the filters available in the string syntax
745745
are also available ( usually with more functionality ) through the creation of full-fledged
746746
selector objects. see :py:class:`Selector` and its subclasses
@@ -753,7 +753,7 @@ class StringSyntaxSelector(Selector):
753753
754754
***Modfiers*** are ``('|','+','-','<','>','%')``
755755
756-
:\|:
756+
:|:
757757
parallel to ( same as :py:class:`ParallelDirSelector` ). Can return multiple objects.
758758
:#:
759759
perpendicular to (same as :py:class:`PerpendicularDirSelector` )

0 commit comments

Comments
 (0)