[lxc-devel] [pylxd/master] Fully deprecate the old api
rockstar on Github
lxc-bot at linuxcontainers.org
Tue Oct 25 21:26:41 UTC 2016
A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 519 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20161025/f86e1d58/attachment.bin>
-------------- next part --------------
From 7376f57dc29cb0ff0405ae48fc5397f4f9e1655a Mon Sep 17 00:00:00 2001
From: Paul Hummer <paul.hummer at canonical.com>
Date: Tue, 25 Oct 2016 15:25:22 -0600
Subject: [PATCH] Fully deprecate the old api
At this point, we should deprecate the code so far as to see that
anywhere it's being used has "pylxd.deprecated" in the import. I
think this makes sense for nova-lxd, but also for any code still
using the old API.
---
pylxd/__init__.py | 1 -
pylxd/deprecated/tests/__init__.py | 2 +-
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/pylxd/__init__.py b/pylxd/__init__.py
index 6fac57e..76cef15 100644
--- a/pylxd/__init__.py
+++ b/pylxd/__init__.py
@@ -16,5 +16,4 @@
__version__ = pbr.version.VersionInfo('pylxd').version_string()
-from pylxd.deprecated import api # NOQA
from pylxd.client import Client # NOQA
diff --git a/pylxd/deprecated/tests/__init__.py b/pylxd/deprecated/tests/__init__.py
index 4780a2b..17a2aaa 100644
--- a/pylxd/deprecated/tests/__init__.py
+++ b/pylxd/deprecated/tests/__init__.py
@@ -16,7 +16,7 @@
from ddt import unpack
import unittest
-from pylxd import api
+from pylxd.deprecated import api
class LXDAPITestBase(unittest.TestCase):
More information about the lxc-devel
mailing list