Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

manage: Remove ineffective Python 2 check.

Anders Kaseorg7942d78751e0
diff --git a/manage.py b/manage.py
index d40943c9605..a17630ac8ba 100755
--- a/manage.py
+++ b/manage.py
@@ -2,21 +2,15 @@
import configparser
import os
import sys
+from collections import defaultdict
from typing import Dict, List, Optional
-if sys.version_info <= (3, 0):
- print("Error: Zulip is a Python 3 project, and cannot be run with Python 2.")
- print("Use e.g. `/path/to/manage.py` not `python /path/to/manage.py`.")
- sys.exit(1)
-
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
sys.path.append(BASE_DIR)
from scripts.lib.setup_path import setup_path
setup_path()
-from collections import defaultdict
-
from django.core.management import ManagementUtility, get_commands
from django.core.management.color import color_style