mirror of
https://github.com/vale981/ray
synced 2025-03-06 10:31:39 -05:00
[rllib] [RFC] Deprecate Python 2 / RLlib (#4832)
This commit is contained in:
parent
0ce0ecbe9c
commit
7237ea70c4
1 changed files with 6 additions and 0 deletions
|
@ -3,6 +3,7 @@ from __future__ import division
|
|||
from __future__ import print_function
|
||||
|
||||
import logging
|
||||
import sys
|
||||
|
||||
# Note: do not introduce unnecessary library dependencies here, e.g. gym.
|
||||
# This file is imported from the tune module in order to register RLlib agents.
|
||||
|
@ -30,6 +31,11 @@ def _setup_logger():
|
|||
logger.addHandler(handler)
|
||||
logger.propagate = False
|
||||
|
||||
if sys.version_info[0] < 3:
|
||||
logger.warn(
|
||||
"RLlib Python 2 support is deprecated, and will be removed "
|
||||
"in a future release.")
|
||||
|
||||
|
||||
def _register_all():
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue