Skip to content

Commit 618c612

Browse files
committed
doctests not meant to be run.
1 parent 2a15ca7 commit 618c612

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

music21/common/numberTools.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -767,17 +767,20 @@ def weightedSelection(values: t.List[int],
767767
@deprecated('v8', 'v9', 'use math.gcd(a, b) instead.')
768768
def euclidGCD(a: int, b: int) -> int:
769769
'''
770-
use Euclid's algorithm to find the GCD of a and b
770+
Deprecated: use math.gcd(a, b) instead
771+
772+
use Euclid's algorithm to find the GCD of a and b::
771773
772774
```
773-
>>> common.euclidGCD(2, 4)
775+
common.euclidGCD(2, 4)
774776
2
775-
>>> common.euclidGCD(20, 8)
777+
778+
common.euclidGCD(20, 8)
776779
4
777-
>>> common.euclidGCD(20, 16)
780+
781+
common.euclidGCD(20, 16)
778782
4
779783
```
780-
781784
'''
782785
if b == 0:
783786
return a

music21/sieve.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -990,7 +990,7 @@ def _process(self):
990990
# ------------------------------------------------------------------------------
991991

992992
# http://docs.python.org/lib/set-objects.html
993-
# set object precedence is places & before |
993+
# set object precedence: & before |
994994

995995
# >>> a = set([3, 4])
996996
# >>> b = set([4, 5])

0 commit comments

Comments
 (0)