Commit c756a6e9 by Stéphane Graber

python3: Drop API warning and fix pep8/pyflakes3

parent 8158c057
......@@ -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")
......
......@@ -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
......
......@@ -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
......
......@@ -23,9 +23,6 @@
# USA
#
import warnings
warnings.filterwarnings("ignore", "The python-lxc API isn't yet stable")
import lxc
import uuid
import sys
......
......@@ -24,9 +24,6 @@
# USA
#
import warnings
warnings.filterwarnings("ignore", "The python-lxc API isn't yet stable")
import gtk
import vte
import lxc
......
......@@ -24,9 +24,6 @@
# USA
#
import warnings
warnings.filterwarnings("ignore", "The python-lxc API isn't yet stable")
import lxc
import sys
import time
......
......@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment