diff options
author | shadchin <shadchin@yandex-team.com> | 2023-10-10 17:45:43 +0300 |
---|---|---|
committer | shadchin <shadchin@yandex-team.com> | 2023-10-10 18:17:04 +0300 |
commit | c61b1fabd502ba5dae5085785cb56e4ec724527b (patch) | |
tree | 5c988002f744a6897d2bd2be8daac8661bcea22c /contrib/python/future/py2/socketserver/__init__.py | |
parent | 2d3a301d3ebf901baec1fdbc0fc5c6adf2683eaa (diff) | |
download | ydb-c61b1fabd502ba5dae5085785cb56e4ec724527b.tar.gz |
Split future on py2/py3
Diffstat (limited to 'contrib/python/future/py2/socketserver/__init__.py')
-rw-r--r-- | contrib/python/future/py2/socketserver/__init__.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/contrib/python/future/py2/socketserver/__init__.py b/contrib/python/future/py2/socketserver/__init__.py new file mode 100644 index 0000000000..c5b8c9c28b --- /dev/null +++ b/contrib/python/future/py2/socketserver/__init__.py @@ -0,0 +1,9 @@ +from __future__ import absolute_import +import sys + +if sys.version_info[0] < 3: + from SocketServer import * +else: + raise ImportError('This package should not be accessible on Python 3. ' + 'Either you are trying to run from the python-future src folder ' + 'or your installation of python-future is corrupted.') |