aboutsummaryrefslogtreecommitdiffstats
path: root/cloud_mdir_sync/__init__.py
diff options
context:
space:
mode:
authorJason Gunthorpe <jgg@mellanox.com>2020-01-10 16:38:52 -0400
committerJason Gunthorpe <jgg@mellanox.com>2020-01-10 16:38:52 -0400
commit2e325c38031bc88568dc065821722dd3e22259cb (patch)
tree04cabe4f38118c483c3e477fc2d980d9b9d45cb4 /cloud_mdir_sync/__init__.py
downloadcloud_mdir_sync-2e325c38031bc88568dc065821722dd3e22259cb.tar.gz
cloud_mdir_sync-2e325c38031bc88568dc065821722dd3e22259cb.tar.bz2
cloud_mdir_sync-2e325c38031bc88568dc065821722dd3e22259cb.zip
Initial commit of cloud_mdir_sync
I have been using for a few months now with no ill effects. Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'cloud_mdir_sync/__init__.py')
-rw-r--r--cloud_mdir_sync/__init__.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/cloud_mdir_sync/__init__.py b/cloud_mdir_sync/__init__.py
new file mode 100644
index 0000000..8382999
--- /dev/null
+++ b/cloud_mdir_sync/__init__.py
@@ -0,0 +1,6 @@
+# SPDX-License-Identifier: GPL-2.0+
+import asyncio
+
+# Python 3.6 compatibility
+if "create_task" not in dir(asyncio):
+ asyncio.create_task = asyncio.ensure_future