]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
python3: Drop API warning and fix pep8/pyflakes3
authorStéphane Graber <stgraber@ubuntu.com>
Thu, 13 Feb 2014 17:50:54 +0000 (12:50 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Thu, 13 Feb 2014 19:14:03 +0000 (14:14 -0500)
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
src/lxc/lxc-device
src/lxc/lxc-ls
src/lxc/lxc-start-ephemeral.in
src/python-lxc/examples/api_test.py
src/python-lxc/examples/pyconsole-vte.py
src/python-lxc/examples/pyconsole.py
src/python-lxc/lxc/__init__.py

index 78be6ab8791dd5d2a0b6b9c0226cd5a2cdcd9c6b..e7ad4fb879e809e39593fc320aedf19ba5e64dc9 100644 (file)
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
 #
 
-# NOTE: To remove once the API is stabilized
-import warnings
-warnings.filterwarnings("ignore", "The python-lxc API isn't yet stable")
-
 import argparse
 import gettext
 import lxc
 import os
-import sys
 
 _ = gettext.gettext
 gettext.textdomain("lxc-device")
index c65ae811c898e18a6fd3035753db0fbd127257ef..065b3e826cf62eb0f8f07444e810c6774a5acc50 100755 (executable)
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
 #
 
-# NOTE: To remove once the API is stabilized
-import warnings
-warnings.filterwarnings("ignore", "The python-lxc API isn't yet stable")
-
 import argparse
 import gettext
 import json
index 552fd9b177dffd9430757cacb6a1f5accd8b549b..e34b3a9cabce7e87e9d4321de7d6d98aff2431f7 100644 (file)
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
 #
 
-# NOTE: To remove once the API is stabilized
-import warnings
-warnings.filterwarnings("ignore", "The python-lxc API isn't yet stable")
-
 import argparse
 import gettext
 import lxc
index a1fe6f9a211edb5c314c7d65d73f8a04eba272b2..1ac1e13dd632862e01b1e292206b85d7ff431a66 100755 (executable)
@@ -23,9 +23,6 @@
 # USA
 #
 
-import warnings
-warnings.filterwarnings("ignore", "The python-lxc API isn't yet stable")
-
 import lxc
 import uuid
 import sys
index 2d989e0f61ecd06f98a7413f6d2f9fb27530e9e0..89c3df72b36b40fd417d33960b70235ed773fd3e 100755 (executable)
@@ -24,9 +24,6 @@
 # USA
 #
 
-import warnings
-warnings.filterwarnings("ignore", "The python-lxc API isn't yet stable")
-
 import gtk
 import vte
 import lxc
index cd17afedd30620464b51758acd77af1b0c1408e6..d47b00b97e7aedc0912febad7be949889adf2a04 100755 (executable)
@@ -24,9 +24,6 @@
 # USA
 #
 
-import warnings
-warnings.filterwarnings("ignore", "The python-lxc API isn't yet stable")
-
 import lxc
 import sys
 import time
index 01f9a69bde2bb1b57ca5a1aed221f5bfdca12f8d..9eb27b6c1a08a869839bef8a64520346c320e5a4 100644 (file)
 import _lxc
 import os
 import subprocess
-import stat
 import time
-import warnings
-
-warnings.warn("The python-lxc API isn't yet stable "
-              "and may change at any point in the future.", Warning, 2)
 
 default_config_path = _lxc.get_global_config_item("lxc.lxcpath")
 version = _lxc.get_version()