Skip to content

Commit c35b8ae

Browse files
authored
Merge pull request #654 from RubenRubens/regex
Fix deprecation warning on regex
2 parents dc15aea + 112024d commit c35b8ae

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,7 +191,7 @@ 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:
@@ -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
@@ -776,11 +776,11 @@ class StringSyntaxSelector(Selector):
776776
:and:
777777
Logical AND, e.g. >X and >Y
778778
:or:
779-
Logical OR, e.g. |X or |Y
779+
Logical OR, e.g. \|X or \|Y
780780
:not:
781781
Logical NOT, e.g. not #XY
782782
:exc(ept):
783-
Set difference (equivalent to AND NOT): |X exc >Z
783+
Set difference (equivalent to AND NOT): \|X exc >Z
784784
785785
Finally, it is also possible to use even more complex expressions with nesting
786786
and arbitrary number of terms, e.g.

0 commit comments

Comments
 (0)