Skip to content

Commit a80ea97

Browse files
committed
fix doctest
1 parent 5a08f39 commit a80ea97

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Doc/library/enum.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1046,11 +1046,11 @@ Utilities and Decorators
10461046
two's-complement, and the leading bit always indicates sign
10471047
(0=positive, 1=negative).
10481048

1049-
>>> from enum import enum
1049+
>>> import enum
10501050
>>> enum.bin(10)
1051-
'0b0 1010'
1051+
... '0b0 1010'
10521052
>>> enum.bin(~10) # ~10 is -11
1053-
'0b1 0101'
1053+
... '0b1 0101'
10541054

10551055
.. versionadded:: 3.11
10561056

0 commit comments

Comments
 (0)