Skip to content

Commit f49657d

Browse files
glemaitremeeseeksmachine
authored andcommitted
Backport PR pandas-dev#31571: DOC fix *_option() docstring
1 parent 78e6ec0 commit f49657d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pandas/_config/config.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,7 @@ def _describe_option(pat="", _print_desc=True):
144144
if len(keys) == 0:
145145
raise OptionError("No such keys(s)")
146146

147-
s = ""
148-
for k in keys: # filter by pat
149-
s += _build_option_description(k)
147+
s = "\n".join([_build_option_description(k) for k in keys])
150148

151149
if _print_desc:
152150
print(s)

0 commit comments

Comments
 (0)