Changeset 5bf2b09 in trunk


Ignore:
Timestamp:
2021-01-30T16:12:01Z (4 years ago)
Author:
Jason R. Coombs <jaraco@…>
Branches:
master
Children:
2bd244d
Parents:
00e856fe
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified src/allmydata/scripts/runner.py

    r00e856fe r5bf2b09  
    11from __future__ import print_function
    22
     3import warnings
    34import os, sys
    45from six.moves import StringIO
     
    178179
    179180def run():
    180     # TODO(3035): Remove tox-check when error becomes a warning
    181     if 'TOX_ENV_NAME' not in os.environ:
    182         assert sys.version_info < (3,), u"Tahoe-LAFS does not run under Python 3. Please use Python 2.7.x."
     181    if not six.PY2:
     182        warnings.warn("Support for Python 3 is experimental. Use at your own risk.")
    183183
    184184    if sys.platform == "win32":
Note: See TracChangeset for help on using the changeset viewer.