diff --git a/scripts/get-django-setting b/scripts/get-django-setting index a0331a1fed..b6b3ff5206 100755 --- a/scripts/get-django-setting +++ b/scripts/get-django-setting @@ -1,6 +1,5 @@ #!/usr/bin/env python3 from __future__ import absolute_import -from __future__ import print_function import os import sys diff --git a/scripts/lib/email-mirror-postfix b/scripts/lib/email-mirror-postfix index 9fcc7048e5..112384d442 100755 --- a/scripts/lib/email-mirror-postfix +++ b/scripts/lib/email-mirror-postfix @@ -38,7 +38,6 @@ Also you can use optional keys to configure the script and change default values -t Disable sending request to the Zulip server. Default value: False. """ from __future__ import absolute_import -from __future__ import print_function import os import ssl diff --git a/scripts/lib/hash_reqs.py b/scripts/lib/hash_reqs.py index d6555438b0..f69487b175 100755 --- a/scripts/lib/hash_reqs.py +++ b/scripts/lib/hash_reqs.py @@ -1,6 +1,5 @@ #!/usr/bin/env python3 -from __future__ import print_function import os import sys diff --git a/scripts/lib/node_cache.py b/scripts/lib/node_cache.py index 635b8cc78b..31180ca03e 100644 --- a/scripts/lib/node_cache.py +++ b/scripts/lib/node_cache.py @@ -1,4 +1,3 @@ -from __future__ import print_function import os import hashlib diff --git a/scripts/lib/pythonrc.py b/scripts/lib/pythonrc.py index 4c57cc3418..24f7d8b588 100644 --- a/scripts/lib/pythonrc.py +++ b/scripts/lib/pythonrc.py @@ -1,4 +1,3 @@ -from __future__ import print_function try: from django.conf import settings from zerver.models import * diff --git a/scripts/lib/queue_workers.py b/scripts/lib/queue_workers.py index f5371043ff..99dfa6f884 100755 --- a/scripts/lib/queue_workers.py +++ b/scripts/lib/queue_workers.py @@ -1,6 +1,5 @@ #!/usr/bin/env python3 -from __future__ import print_function import argparse import os import sys diff --git a/scripts/lib/setup_venv.py b/scripts/lib/setup_venv.py index 2f0cb4f9c4..9b037b4f55 100644 --- a/scripts/lib/setup_venv.py +++ b/scripts/lib/setup_venv.py @@ -1,4 +1,3 @@ -from __future__ import print_function import os import sys diff --git a/scripts/lib/unpack-zulip b/scripts/lib/unpack-zulip index cd5def7fc1..5dacfb9c02 100755 --- a/scripts/lib/unpack-zulip +++ b/scripts/lib/unpack-zulip @@ -1,5 +1,4 @@ #!/usr/bin/env python3 -from __future__ import print_function import os import sys import subprocess diff --git a/scripts/lib/upgrade-zulip b/scripts/lib/upgrade-zulip index 8183dae0d3..bbf14a3707 100755 --- a/scripts/lib/upgrade-zulip +++ b/scripts/lib/upgrade-zulip @@ -1,5 +1,4 @@ #!/usr/bin/env python3 -from __future__ import print_function import os import shutil import sys diff --git a/scripts/lib/upgrade-zulip-stage-2 b/scripts/lib/upgrade-zulip-stage-2 index c159ba6199..c5f6435a2c 100755 --- a/scripts/lib/upgrade-zulip-stage-2 +++ b/scripts/lib/upgrade-zulip-stage-2 @@ -4,7 +4,6 @@ # version of Zulip to the new version. upgrade-zulip-stage-2 is # always run from the new version of Zulip, so any bug fixes take # effect on the very next upgrade. -from __future__ import print_function import argparse import subprocess import os diff --git a/scripts/lib/zulip_tools.py b/scripts/lib/zulip_tools.py index c389504aa2..925d21bac2 100755 --- a/scripts/lib/zulip_tools.py +++ b/scripts/lib/zulip_tools.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 -from __future__ import print_function import argparse import datetime import errno diff --git a/scripts/nagios/check-rabbitmq-consumers b/scripts/nagios/check-rabbitmq-consumers index 8b79694d38..9300a3126f 100755 --- a/scripts/nagios/check-rabbitmq-consumers +++ b/scripts/nagios/check-rabbitmq-consumers @@ -1,6 +1,5 @@ #!/usr/bin/env python3 -from __future__ import print_function import sys import time import optparse diff --git a/scripts/nagios/check-rabbitmq-queue b/scripts/nagios/check-rabbitmq-queue index 5fd1a744b5..8b1daac9db 100755 --- a/scripts/nagios/check-rabbitmq-queue +++ b/scripts/nagios/check-rabbitmq-queue @@ -1,6 +1,5 @@ #!/usr/bin/env python3 -from __future__ import print_function import sys import re import time diff --git a/scripts/restart-server b/scripts/restart-server index c7a98632c3..e0f86283e4 100755 --- a/scripts/restart-server +++ b/scripts/restart-server @@ -1,5 +1,4 @@ #!/usr/bin/env python3 -from __future__ import print_function import os import sys import pwd diff --git a/scripts/setup/generate_secrets.py b/scripts/setup/generate_secrets.py index e22d5609be..be3199ea9b 100755 --- a/scripts/setup/generate_secrets.py +++ b/scripts/setup/generate_secrets.py @@ -1,7 +1,6 @@ #!/usr/bin/env python3 # This tools generates /etc/zulip/zulip-secrets.conf -from __future__ import print_function import sys import os if False: diff --git a/scripts/upgrade-zulip-from-git b/scripts/upgrade-zulip-from-git index 4b3c60fa42..aaca256095 100755 --- a/scripts/upgrade-zulip-from-git +++ b/scripts/upgrade-zulip-from-git @@ -1,5 +1,4 @@ #!/usr/bin/env python3 -from __future__ import print_function import os from six.moves import configparser import sys diff --git a/scripts/zulip-puppet-apply b/scripts/zulip-puppet-apply index fa933a3c19..e0bd77accf 100755 --- a/scripts/zulip-puppet-apply +++ b/scripts/zulip-puppet-apply @@ -1,6 +1,5 @@ #!/usr/bin/env python3 -from __future__ import print_function import os import sys import subprocess