Skip to content

Commit

Permalink
manage: Remove ineffective Python 2 check.
Browse files Browse the repository at this point in the history
Python 2 can’t parse this file, so it never gets as far as running the
check.

This isn’t really a problem anymore.  The python → python2 symlink is
optional and deprecated in Ubuntu 20.04 and Debian 11; it’s removed in
Ubuntu 22.04 and Debian 12.

(Also the <= was weird.)

Signed-off-by: Anders Kaseorg <[email protected]>
  • Loading branch information
andersk authored and timabbott committed Jun 30, 2022
1 parent 120de1d commit 7942d78
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 7942d78

Please sign in to comment.