summaryrefslogtreecommitdiffstats
path: root/pykolab/cli
diff options
context:
space:
mode:
authorChristoph Erhardt <kolab@sicherha.de>2022-03-13 20:45:12 +0100
committerChristoph Erhardt <kolab@sicherha.de>2022-03-13 20:45:57 +0100
commite6c4153ac7de6d32c57c88cdec4cc627863ad506 (patch)
tree5257297b451fb02ab18f970313c429b544de7863 /pykolab/cli
parent1aeaee3ca41aa909bf994032ddae2d8d1592054e (diff)
downloadpykolab-e6c4153ac7de6d32c57c88cdec4cc627863ad506.tar.gz
[Python 3] Implicit relative imports fixes
Reviewers: #pykolab, #pykolab_developers, sicherha Reviewed By: #pykolab_developers, sicherha Subscribers: sicherha Differential Revision: https://git.kolab.org/D3391
Diffstat (limited to 'pykolab/cli')
-rw-r--r--pykolab/cli/__init__.py2
-rw-r--r--pykolab/cli/cmd_acl_cleanup.py2
-rw-r--r--pykolab/cli/cmd_add_alias.py2
-rw-r--r--pykolab/cli/cmd_add_domain.py2
-rw-r--r--pykolab/cli/cmd_add_user.py2
-rw-r--r--pykolab/cli/cmd_add_user_subscription.py2
-rw-r--r--pykolab/cli/cmd_check_quota.py2
-rw-r--r--pykolab/cli/cmd_count_domain_mailboxes.py2
-rw-r--r--pykolab/cli/cmd_create_mailbox.py2
-rw-r--r--pykolab/cli/cmd_delete_domain.py2
-rw-r--r--pykolab/cli/cmd_delete_mailbox.py2
-rw-r--r--pykolab/cli/cmd_delete_mailbox_acl.py2
-rw-r--r--pykolab/cli/cmd_delete_message.py2
-rw-r--r--pykolab/cli/cmd_export_mailbox.py2
-rw-r--r--pykolab/cli/cmd_find_domain.py2
-rw-r--r--pykolab/cli/cmd_list_deleted_mailboxes.py2
-rw-r--r--pykolab/cli/cmd_list_domain_mailboxes.py2
-rw-r--r--pykolab/cli/cmd_list_domains.py2
-rw-r--r--pykolab/cli/cmd_list_mailbox_acls.py2
-rw-r--r--pykolab/cli/cmd_list_mailbox_metadata.py2
-rw-r--r--pykolab/cli/cmd_list_mailboxes.py2
-rw-r--r--pykolab/cli/cmd_list_messages.py2
-rw-r--r--pykolab/cli/cmd_list_ous.py2
-rw-r--r--pykolab/cli/cmd_list_quota.py2
-rw-r--r--pykolab/cli/cmd_list_user_subscriptions.py2
-rw-r--r--pykolab/cli/cmd_list_users.py2
-rw-r--r--pykolab/cli/cmd_mailbox_cleanup.py2
-rw-r--r--pykolab/cli/cmd_remove_mailaddress.py2
-rw-r--r--pykolab/cli/cmd_remove_user_subscription.py2
-rw-r--r--pykolab/cli/cmd_rename_mailbox.py2
-rw-r--r--pykolab/cli/cmd_server_info.py2
-rw-r--r--pykolab/cli/cmd_set_language.py2
-rw-r--r--pykolab/cli/cmd_set_mail.py2
-rw-r--r--pykolab/cli/cmd_set_mailbox_acl.py2
-rw-r--r--pykolab/cli/cmd_set_mailbox_metadata.py2
-rw-r--r--pykolab/cli/cmd_set_quota.py2
-rw-r--r--pykolab/cli/cmd_sync.py2
-rw-r--r--pykolab/cli/cmd_sync_mailhost_attrs.py2
-rw-r--r--pykolab/cli/cmd_transfer_mailbox.py2
-rw-r--r--pykolab/cli/cmd_undelete_mailbox.py2
-rw-r--r--pykolab/cli/cmd_user_info.py2
41 files changed, 41 insertions, 41 deletions
diff --git a/pykolab/cli/__init__.py b/pykolab/cli/__init__.py
index 46c9930..3aafd03 100644
--- a/pykolab/cli/__init__.py
+++ b/pykolab/cli/__init__.py
@@ -42,7 +42,7 @@ conf = pykolab.getConf()
class Cli(object):
def __init__(self):
- import commands
+ from . import commands
commands.__init__()
to_execute = []
diff --git a/pykolab/cli/cmd_acl_cleanup.py b/pykolab/cli/cmd_acl_cleanup.py
index 2d6bd6e..54cfd38 100644
--- a/pykolab/cli/cmd_acl_cleanup.py
+++ b/pykolab/cli/cmd_acl_cleanup.py
@@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-import commands
+from . import commands
import pykolab
diff --git a/pykolab/cli/cmd_add_alias.py b/pykolab/cli/cmd_add_alias.py
index 81ca005..8f90032 100644
--- a/pykolab/cli/cmd_add_alias.py
+++ b/pykolab/cli/cmd_add_alias.py
@@ -22,7 +22,7 @@ from six import string_types
import sys
-import commands
+from . import commands
import pykolab
diff --git a/pykolab/cli/cmd_add_domain.py b/pykolab/cli/cmd_add_domain.py
index fecd82a..8034281 100644
--- a/pykolab/cli/cmd_add_domain.py
+++ b/pykolab/cli/cmd_add_domain.py
@@ -19,7 +19,7 @@
import sys
-import commands
+from . import commands
import pykolab
diff --git a/pykolab/cli/cmd_add_user.py b/pykolab/cli/cmd_add_user.py
index 09cc08c..b01b9ad 100644
--- a/pykolab/cli/cmd_add_user.py
+++ b/pykolab/cli/cmd_add_user.py
@@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-import commands
+from . import commands
import pykolab
diff --git a/pykolab/cli/cmd_add_user_subscription.py b/pykolab/cli/cmd_add_user_subscription.py
index 06ac0e2..50ba9af 100644
--- a/pykolab/cli/cmd_add_user_subscription.py
+++ b/pykolab/cli/cmd_add_user_subscription.py
@@ -21,7 +21,7 @@ from __future__ import print_function
import sys
-import commands
+from . import commands
import pykolab
diff --git a/pykolab/cli/cmd_check_quota.py b/pykolab/cli/cmd_check_quota.py
index cae5077..c102735 100644
--- a/pykolab/cli/cmd_check_quota.py
+++ b/pykolab/cli/cmd_check_quota.py
@@ -21,7 +21,7 @@ from __future__ import print_function
import sys
-import commands
+from . import commands
import pykolab
diff --git a/pykolab/cli/cmd_count_domain_mailboxes.py b/pykolab/cli/cmd_count_domain_mailboxes.py
index 47bbcb1..0559bcc 100644
--- a/pykolab/cli/cmd_count_domain_mailboxes.py
+++ b/pykolab/cli/cmd_count_domain_mailboxes.py
@@ -19,7 +19,7 @@
import datetime
-import commands
+from . import commands
import pykolab
diff --git a/pykolab/cli/cmd_create_mailbox.py b/pykolab/cli/cmd_create_mailbox.py
index 9e91800..4da5c47 100644
--- a/pykolab/cli/cmd_create_mailbox.py
+++ b/pykolab/cli/cmd_create_mailbox.py
@@ -19,7 +19,7 @@
import sys
-import commands
+from . import commands
import pykolab
diff --git a/pykolab/cli/cmd_delete_domain.py b/pykolab/cli/cmd_delete_domain.py
index 60ca55b..28bbcaf 100644
--- a/pykolab/cli/cmd_delete_domain.py
+++ b/pykolab/cli/cmd_delete_domain.py
@@ -19,7 +19,7 @@
import sys
-import commands
+from . import commands
import pykolab
diff --git a/pykolab/cli/cmd_delete_mailbox.py b/pykolab/cli/cmd_delete_mailbox.py
index 40f8b44..66ec534 100644
--- a/pykolab/cli/cmd_delete_mailbox.py
+++ b/pykolab/cli/cmd_delete_mailbox.py
@@ -21,7 +21,7 @@ from __future__ import print_function
import sys
-import commands
+from . import commands
import pykolab
diff --git a/pykolab/cli/cmd_delete_mailbox_acl.py b/pykolab/cli/cmd_delete_mailbox_acl.py
index d146aac..c15f85b 100644
--- a/pykolab/cli/cmd_delete_mailbox_acl.py
+++ b/pykolab/cli/cmd_delete_mailbox_acl.py
@@ -21,7 +21,7 @@ from __future__ import print_function
import sys
-import commands
+from . import commands
import pykolab
diff --git a/pykolab/cli/cmd_delete_message.py b/pykolab/cli/cmd_delete_message.py
index 5c7c242..5f68ee8 100644
--- a/pykolab/cli/cmd_delete_message.py
+++ b/pykolab/cli/cmd_delete_message.py
@@ -19,7 +19,7 @@
import sys
-import commands
+from . import commands
import pykolab
diff --git a/pykolab/cli/cmd_export_mailbox.py b/pykolab/cli/cmd_export_mailbox.py
index 78d55f1..f37c7b2 100644
--- a/pykolab/cli/cmd_export_mailbox.py
+++ b/pykolab/cli/cmd_export_mailbox.py
@@ -19,7 +19,7 @@
from __future__ import print_function
-import commands
+from . import commands
import pykolab
diff --git a/pykolab/cli/cmd_find_domain.py b/pykolab/cli/cmd_find_domain.py
index f65af3f..64dc2de 100644
--- a/pykolab/cli/cmd_find_domain.py
+++ b/pykolab/cli/cmd_find_domain.py
@@ -19,7 +19,7 @@
import sys
-import commands
+from . import commands
import pykolab
diff --git a/pykolab/cli/cmd_list_deleted_mailboxes.py b/pykolab/cli/cmd_list_deleted_mailboxes.py
index 55b6b9f..6596142 100644
--- a/pykolab/cli/cmd_list_deleted_mailboxes.py
+++ b/pykolab/cli/cmd_list_deleted_mailboxes.py
@@ -19,7 +19,7 @@
import datetime
-import commands
+from . import commands
import pykolab
diff --git a/pykolab/cli/cmd_list_domain_mailboxes.py b/pykolab/cli/cmd_list_domain_mailboxes.py
index fd9a7fd..602fc5d 100644
--- a/pykolab/cli/cmd_list_domain_mailboxes.py
+++ b/pykolab/cli/cmd_list_domain_mailboxes.py
@@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-import commands
+from . import commands
import pykolab
diff --git a/pykolab/cli/cmd_list_domains.py b/pykolab/cli/cmd_list_domains.py
index e76edca..d72ed71 100644
--- a/pykolab/cli/cmd_list_domains.py
+++ b/pykolab/cli/cmd_list_domains.py
@@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-import commands
+from . import commands
import pykolab
diff --git a/pykolab/cli/cmd_list_mailbox_acls.py b/pykolab/cli/cmd_list_mailbox_acls.py
index dc86e47..d4f76d5 100644
--- a/pykolab/cli/cmd_list_mailbox_acls.py
+++ b/pykolab/cli/cmd_list_mailbox_acls.py
@@ -21,7 +21,7 @@ from __future__ import print_function
import sys
-import commands
+from . import commands
import pykolab
diff --git a/pykolab/cli/cmd_list_mailbox_metadata.py b/pykolab/cli/cmd_list_mailbox_metadata.py
index 27d881c..7734770 100644
--- a/pykolab/cli/cmd_list_mailbox_metadata.py
+++ b/pykolab/cli/cmd_list_mailbox_metadata.py
@@ -21,7 +21,7 @@ from __future__ import print_function
import sys
-import commands
+from . import commands
import pykolab
diff --git a/pykolab/cli/cmd_list_mailboxes.py b/pykolab/cli/cmd_list_mailboxes.py
index 738cd86..3cb7f03 100644
--- a/pykolab/cli/cmd_list_mailboxes.py
+++ b/pykolab/cli/cmd_list_mailboxes.py
@@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-import commands
+from . import commands
import pykolab
diff --git a/pykolab/cli/cmd_list_messages.py b/pykolab/cli/cmd_list_messages.py
index 786a5f0..af2c447 100644
--- a/pykolab/cli/cmd_list_messages.py
+++ b/pykolab/cli/cmd_list_messages.py
@@ -19,7 +19,7 @@
import sys
-import commands
+from . import commands
import pykolab
diff --git a/pykolab/cli/cmd_list_ous.py b/pykolab/cli/cmd_list_ous.py
index 61a4cb9..46b991f 100644
--- a/pykolab/cli/cmd_list_ous.py
+++ b/pykolab/cli/cmd_list_ous.py
@@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-import commands
+from . import commands
import pykolab
diff --git a/pykolab/cli/cmd_list_quota.py b/pykolab/cli/cmd_list_quota.py
index d956168..7dd6b9d 100644
--- a/pykolab/cli/cmd_list_quota.py
+++ b/pykolab/cli/cmd_list_quota.py
@@ -21,7 +21,7 @@ from __future__ import print_function
import sys
-import commands
+from . import commands
import pykolab
diff --git a/pykolab/cli/cmd_list_user_subscriptions.py b/pykolab/cli/cmd_list_user_subscriptions.py
index ad6e549..3d90812 100644
--- a/pykolab/cli/cmd_list_user_subscriptions.py
+++ b/pykolab/cli/cmd_list_user_subscriptions.py
@@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-import commands
+from . import commands
import pykolab
diff --git a/pykolab/cli/cmd_list_users.py b/pykolab/cli/cmd_list_users.py
index a17eeba..bb5506e 100644
--- a/pykolab/cli/cmd_list_users.py
+++ b/pykolab/cli/cmd_list_users.py
@@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-import commands
+from . import commands
import pykolab
diff --git a/pykolab/cli/cmd_mailbox_cleanup.py b/pykolab/cli/cmd_mailbox_cleanup.py
index 656a978..ccc964d 100644
--- a/pykolab/cli/cmd_mailbox_cleanup.py
+++ b/pykolab/cli/cmd_mailbox_cleanup.py
@@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-import commands
+from . import commands
import pykolab
diff --git a/pykolab/cli/cmd_remove_mailaddress.py b/pykolab/cli/cmd_remove_mailaddress.py
index 120c2d9..cfc4f89 100644
--- a/pykolab/cli/cmd_remove_mailaddress.py
+++ b/pykolab/cli/cmd_remove_mailaddress.py
@@ -22,7 +22,7 @@ from six import string_types
import sys
-import commands
+from . import commands
import pykolab
diff --git a/pykolab/cli/cmd_remove_user_subscription.py b/pykolab/cli/cmd_remove_user_subscription.py
index b16249c..208ff4a 100644
--- a/pykolab/cli/cmd_remove_user_subscription.py
+++ b/pykolab/cli/cmd_remove_user_subscription.py
@@ -21,7 +21,7 @@ from __future__ import print_function
import sys
-import commands
+from . import commands
import pykolab
diff --git a/pykolab/cli/cmd_rename_mailbox.py b/pykolab/cli/cmd_rename_mailbox.py
index 4373acf..b46c79d 100644
--- a/pykolab/cli/cmd_rename_mailbox.py
+++ b/pykolab/cli/cmd_rename_mailbox.py
@@ -21,7 +21,7 @@ from __future__ import print_function
import sys
-import commands
+from . import commands
import pykolab
diff --git a/pykolab/cli/cmd_server_info.py b/pykolab/cli/cmd_server_info.py
index 0ae0c0e..f0f867a 100644
--- a/pykolab/cli/cmd_server_info.py
+++ b/pykolab/cli/cmd_server_info.py
@@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-import commands
+from . import commands
import pykolab
diff --git a/pykolab/cli/cmd_set_language.py b/pykolab/cli/cmd_set_language.py
index 83b5d95..df575c5 100644
--- a/pykolab/cli/cmd_set_language.py
+++ b/pykolab/cli/cmd_set_language.py
@@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-import commands
+from . import commands
import pykolab
diff --git a/pykolab/cli/cmd_set_mail.py b/pykolab/cli/cmd_set_mail.py
index 0b457cb..97512fd 100644
--- a/pykolab/cli/cmd_set_mail.py
+++ b/pykolab/cli/cmd_set_mail.py
@@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-import commands
+from . import commands
import pykolab
diff --git a/pykolab/cli/cmd_set_mailbox_acl.py b/pykolab/cli/cmd_set_mailbox_acl.py
index 63b5c2d..a18c48b 100644
--- a/pykolab/cli/cmd_set_mailbox_acl.py
+++ b/pykolab/cli/cmd_set_mailbox_acl.py
@@ -21,7 +21,7 @@ from __future__ import print_function
import sys
-import commands
+from . import commands
import pykolab
diff --git a/pykolab/cli/cmd_set_mailbox_metadata.py b/pykolab/cli/cmd_set_mailbox_metadata.py
index 91aec50..339b664 100644
--- a/pykolab/cli/cmd_set_mailbox_metadata.py
+++ b/pykolab/cli/cmd_set_mailbox_metadata.py
@@ -21,7 +21,7 @@ from __future__ import print_function
import sys
-import commands
+from . import commands
import pykolab
diff --git a/pykolab/cli/cmd_set_quota.py b/pykolab/cli/cmd_set_quota.py
index b6c89c1..3692f10 100644
--- a/pykolab/cli/cmd_set_quota.py
+++ b/pykolab/cli/cmd_set_quota.py
@@ -21,7 +21,7 @@ from __future__ import print_function
import sys
-import commands
+from . import commands
import pykolab
diff --git a/pykolab/cli/cmd_sync.py b/pykolab/cli/cmd_sync.py
index 2aaf9df..85952cb 100644
--- a/pykolab/cli/cmd_sync.py
+++ b/pykolab/cli/cmd_sync.py
@@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-import commands
+from . import commands
from distutils import version
import multiprocessing
diff --git a/pykolab/cli/cmd_sync_mailhost_attrs.py b/pykolab/cli/cmd_sync_mailhost_attrs.py
index 4d9663f..a3e200f 100644
--- a/pykolab/cli/cmd_sync_mailhost_attrs.py
+++ b/pykolab/cli/cmd_sync_mailhost_attrs.py
@@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-import commands
+from . import commands
import pykolab
diff --git a/pykolab/cli/cmd_transfer_mailbox.py b/pykolab/cli/cmd_transfer_mailbox.py
index 1593eea..071eda4 100644
--- a/pykolab/cli/cmd_transfer_mailbox.py
+++ b/pykolab/cli/cmd_transfer_mailbox.py
@@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-import commands
+from . import commands
import pykolab
diff --git a/pykolab/cli/cmd_undelete_mailbox.py b/pykolab/cli/cmd_undelete_mailbox.py
index 5b74a64..35b7a2f 100644
--- a/pykolab/cli/cmd_undelete_mailbox.py
+++ b/pykolab/cli/cmd_undelete_mailbox.py
@@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-import commands
+from . import commands
import pykolab
diff --git a/pykolab/cli/cmd_user_info.py b/pykolab/cli/cmd_user_info.py
index beaeb40..eb7dfcb 100644
--- a/pykolab/cli/cmd_user_info.py
+++ b/pykolab/cli/cmd_user_info.py
@@ -21,7 +21,7 @@ from __future__ import print_function
import sys
-import commands
+from . import commands
import pykolab