mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-04-08 19:34:18 +00:00
In scripts.runner, replace hard failure on Python 3 with 'experimental' warning. Ref #3603. Closes #3035.
This commit is contained in:
parent
00e856fed5
commit
5bf2b09b81
@ -1,5 +1,6 @@
|
||||
from __future__ import print_function
|
||||
|
||||
import warnings
|
||||
import os, sys
|
||||
from six.moves import StringIO
|
||||
import six
|
||||
@ -177,9 +178,8 @@ def _maybe_enable_eliot_logging(options, reactor):
|
||||
return options
|
||||
|
||||
def run():
|
||||
# TODO(3035): Remove tox-check when error becomes a warning
|
||||
if 'TOX_ENV_NAME' not in os.environ:
|
||||
assert sys.version_info < (3,), u"Tahoe-LAFS does not run under Python 3. Please use Python 2.7.x."
|
||||
if not six.PY2:
|
||||
warnings.warn("Support for Python 3 is experimental. Use at your own risk.")
|
||||
|
||||
if sys.platform == "win32":
|
||||
from allmydata.windows.fixups import initialize
|
||||
|
Loading…
x
Reference in New Issue
Block a user