|
25 | 25 | import sys |
26 | 26 | import operator |
27 | 27 | import warnings |
28 | | -import textwrap |
29 | 28 | import re |
30 | 29 | from functools import reduce |
31 | 30 |
|
@@ -2445,32 +2444,32 @@ def _recursive_printoption(result, mask, printopt): |
2445 | 2444 |
|
2446 | 2445 | # For better or worse, these end in a newline |
2447 | 2446 | _legacy_print_templates = dict( |
2448 | | - long_std=textwrap.dedent("""\ |
2449 | | - masked_%(name)s(data = |
2450 | | - %(data)s, |
2451 | | - %(nlen)s mask = |
2452 | | - %(mask)s, |
2453 | | - %(nlen)s fill_value = %(fill)s) |
2454 | | - """), |
2455 | | - long_flx=textwrap.dedent("""\ |
2456 | | - masked_%(name)s(data = |
2457 | | - %(data)s, |
2458 | | - %(nlen)s mask = |
2459 | | - %(mask)s, |
2460 | | - %(nlen)s fill_value = %(fill)s, |
2461 | | - %(nlen)s dtype = %(dtype)s) |
2462 | | - """), |
2463 | | - short_std=textwrap.dedent("""\ |
2464 | | - masked_%(name)s(data = %(data)s, |
2465 | | - %(nlen)s mask = %(mask)s, |
2466 | | - %(nlen)s fill_value = %(fill)s) |
2467 | | - """), |
2468 | | - short_flx=textwrap.dedent("""\ |
2469 | | - masked_%(name)s(data = %(data)s, |
2470 | | - %(nlen)s mask = %(mask)s, |
2471 | | - %(nlen)s fill_value = %(fill)s, |
2472 | | - %(nlen)s dtype = %(dtype)s) |
2473 | | - """) |
| 2447 | + long_std="""\ |
| 2448 | +masked_%(name)s(data = |
| 2449 | + %(data)s, |
| 2450 | +%(nlen)s mask = |
| 2451 | + %(mask)s, |
| 2452 | +%(nlen)s fill_value = %(fill)s) |
| 2453 | +""", |
| 2454 | + long_flx="""\ |
| 2455 | +masked_%(name)s(data = |
| 2456 | + %(data)s, |
| 2457 | +%(nlen)s mask = |
| 2458 | + %(mask)s, |
| 2459 | +%(nlen)s fill_value = %(fill)s, |
| 2460 | +%(nlen)s dtype = %(dtype)s) |
| 2461 | +""", |
| 2462 | + short_std="""\ |
| 2463 | +masked_%(name)s(data = %(data)s, |
| 2464 | +%(nlen)s mask = %(mask)s, |
| 2465 | +%(nlen)s fill_value = %(fill)s) |
| 2466 | +""", |
| 2467 | + short_flx="""\ |
| 2468 | +masked_%(name)s(data = %(data)s, |
| 2469 | +%(nlen)s mask = %(mask)s, |
| 2470 | +%(nlen)s fill_value = %(fill)s, |
| 2471 | +%(nlen)s dtype = %(dtype)s) |
| 2472 | +""" |
2474 | 2473 | ) |
2475 | 2474 |
|
2476 | 2475 | ############################################################################### |
|
0 commit comments