summaryrefslogtreecommitdiffstats
path: root/pykolab/cli/cmd_delete_mailbox_acl.py
diff options
context:
space:
mode:
authorChristoph Erhardt <kolab@sicherha.de>2021-06-04 16:50:46 +0200
committerChristoph Erhardt <kolab@sicherha.de>2022-01-10 20:42:16 +0100
commitd0579b7e5da331576b80b9d35eb62994075bc939 (patch)
treee925558aabd8a69217e828c46eb4111d16f00fd4 /pykolab/cli/cmd_delete_mailbox_acl.py
parent7750671314e6da19f65aaa95bb1095963fdc175a (diff)
downloadpykolab-d0579b7e5da331576b80b9d35eb62994075bc939.tar.gz
[Python 3] Use print() as function instead of statement
Summary: print() has been a function since Python 2.6; the old behaviour was dropped in Python 3.0. To use the named file argument in Python 2, we need to import print_function from the __future__ module. Reviewers: machniak, mollekopf Reviewed By: mollekopf Differential Revision: https://git.kolab.org/D3229
Diffstat (limited to 'pykolab/cli/cmd_delete_mailbox_acl.py')
-rw-r--r--pykolab/cli/cmd_delete_mailbox_acl.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/pykolab/cli/cmd_delete_mailbox_acl.py b/pykolab/cli/cmd_delete_mailbox_acl.py
index b7a7ede..ebfc2ec 100644
--- a/pykolab/cli/cmd_delete_mailbox_acl.py
+++ b/pykolab/cli/cmd_delete_mailbox_acl.py
@@ -17,6 +17,8 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
+from __future__ import print_function
+
import sys
import commands
@@ -57,7 +59,7 @@ def execute(*args, **kw):
imap.connect(domain=domain)
if not imap.has_folder(folder):
- print >> sys.stderr, _("No such folder %r") % (folder)
+ print(_("No such folder %r") % (folder), file=sys.stderr)
else:
folders = imap.list_folders(folder)