Skip to content

Commit d27e99c

Browse files
committed
.display_util.notify: dont wrap
As this function is supposed to be an analogue for print, we do not want it to wrap by default.
1 parent 627aace commit d27e99c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

certbot/certbot/display/util.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def notify(msg):
106106
107107
"""
108108
zope.component.getUtility(interfaces.IDisplay).notification(
109-
msg, pause=False, decorate=False
109+
msg, pause=False, decorate=False, wrap=False
110110
)
111111

112112

certbot/tests/display/util_test.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ def test_notify(self, mock_util):
483483
from certbot.display.util import notify
484484
notify("Hello World")
485485
mock_util().notification.assert_called_with(
486-
"Hello World", pause=False, decorate=False
486+
"Hello World", pause=False, decorate=False, wrap=False
487487
)
488488

489489

0 commit comments

Comments
 (0)