From: Stéphane Graber Date: Thu, 13 Feb 2014 17:50:54 +0000 (-0500) Subject: python3: Drop API warning and fix pep8/pyflakes3 X-Git-Tag: lxc-1.0.0.rc1~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c756a6e91b6d6da2ff8a21b5a4ece26b05b99283;p=thirdparty%2Flxc.git python3: Drop API warning and fix pep8/pyflakes3 Signed-off-by: Stéphane Graber Acked-by: Serge E. Hallyn --- diff --git a/src/lxc/lxc-device b/src/lxc/lxc-device index 78be6ab87..e7ad4fb87 100644 --- a/src/lxc/lxc-device +++ b/src/lxc/lxc-device @@ -25,15 +25,10 @@ # 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") diff --git a/src/lxc/lxc-ls b/src/lxc/lxc-ls index c65ae811c..065b3e826 100755 --- a/src/lxc/lxc-ls +++ b/src/lxc/lxc-ls @@ -25,10 +25,6 @@ # 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 diff --git a/src/lxc/lxc-start-ephemeral.in b/src/lxc/lxc-start-ephemeral.in index 552fd9b17..e34b3a9ca 100644 --- a/src/lxc/lxc-start-ephemeral.in +++ b/src/lxc/lxc-start-ephemeral.in @@ -25,10 +25,6 @@ # 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 diff --git a/src/python-lxc/examples/api_test.py b/src/python-lxc/examples/api_test.py index a1fe6f9a2..1ac1e13dd 100755 --- a/src/python-lxc/examples/api_test.py +++ b/src/python-lxc/examples/api_test.py @@ -23,9 +23,6 @@ # USA # -import warnings -warnings.filterwarnings("ignore", "The python-lxc API isn't yet stable") - import lxc import uuid import sys diff --git a/src/python-lxc/examples/pyconsole-vte.py b/src/python-lxc/examples/pyconsole-vte.py index 2d989e0f6..89c3df72b 100755 --- a/src/python-lxc/examples/pyconsole-vte.py +++ b/src/python-lxc/examples/pyconsole-vte.py @@ -24,9 +24,6 @@ # USA # -import warnings -warnings.filterwarnings("ignore", "The python-lxc API isn't yet stable") - import gtk import vte import lxc diff --git a/src/python-lxc/examples/pyconsole.py b/src/python-lxc/examples/pyconsole.py index cd17afedd..d47b00b97 100755 --- a/src/python-lxc/examples/pyconsole.py +++ b/src/python-lxc/examples/pyconsole.py @@ -24,9 +24,6 @@ # USA # -import warnings -warnings.filterwarnings("ignore", "The python-lxc API isn't yet stable") - import lxc import sys import time diff --git a/src/python-lxc/lxc/__init__.py b/src/python-lxc/lxc/__init__.py index 01f9a69bd..9eb27b6c1 100644 --- a/src/python-lxc/lxc/__init__.py +++ b/src/python-lxc/lxc/__init__.py @@ -25,12 +25,7 @@ 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()