#3035 closed defect (fixed)

Turn python2 checks from errors into warnings

Reported by: heartsucker Owned by: jaraco
Priority: normal Milestone: Support Python 3
Component: unknown Version: 1.12.1
Keywords: Cc:
Launchpad Bug:

Description

There are some explicit checks that the python version is 3 or greater. We should change these from errors to warnings printed to stderr to allow us to start testing python3 compatibility.

Change History (4)

comment:1 Changed at 2020-01-17T17:16:34Z by exarkun

I wonder if this is about a check for Python version *less* than 3. The CLI entrypoint has such a check:

./allmydata/scripts/runner.py:188:    assert sys.version_info < (3,), u"Tahoe-LAFS does not run under Python 3. Please use Python 2.7.x."

comment:2 Changed at 2021-01-30T16:12:23Z by jaraco

  • Owner set to jaraco
  • Status changed from new to assigned

comment:4 Changed at 2021-03-17T20:05:27Z by Jason R. Coombs <jaraco@…>

  • Resolution set to fixed
  • Status changed from assigned to closed

In 5bf2b09/trunk:

In scripts.runner, replace hard failure on Python 3 with 'experimental' warning. Ref #3603. Closes #3035.

Note: See TracTickets for help on using tickets.