The following pull request was submitted through Github.
It can be accessed and reviewed at: https://github.com/lxc/pylxd/pull/194

This e-mail was sent by the LXC bot, direct replies will not reach the author
unless they happen to be subscribed to this list.

=== Description (from pull-request) ===
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.
From 7376f57dc29cb0ff0405ae48fc5397f4f9e1655a Mon Sep 17 00:00:00 2001
From: Paul Hummer <paul.hum...@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):
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to