Skip to content

Commit 5a3c968

Browse files
committed
Add blank lines to ReST examples
1 parent 161e6ad commit 5a3c968

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cycler.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,30 @@
55
Cycling through combinations of values, producing dictionaries.
66
77
You can add cyclers::
8+
89
from cycler import cycler
910
cc = (cycler('color', list('rgb')) +
1011
cycler('linestyle', ['-', '--', '-.']))
1112
for d in cc:
1213
print(d)
1314
1415
Results in::
16+
1517
{'color': 'r', 'linestyle': '-'}
1618
{'color': 'g', 'linestyle': '--'}
1719
{'color': 'b', 'linestyle': '-.'}
1820
21+
1922
You can multiply cyclers::
23+
2024
from cycler import cycler
2125
cc = (cycler('color', list('rgb')) *
2226
cycler('linestyle', ['-', '--', '-.']))
2327
for d in cc:
2428
print(d)
2529
2630
Results in::
31+
2732
{'color': 'r', 'linestyle': '-'}
2833
{'color': 'r', 'linestyle': '--'}
2934
{'color': 'r', 'linestyle': '-.'}

0 commit comments

Comments
 (0)