Skip to content

Commit

Permalink
python3: Drop API warning and fix pep8/pyflakes3
Browse files Browse the repository at this point in the history
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
  • Loading branch information
stgraber committed Feb 13, 2014
1 parent 8158c05 commit c756a6e
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 27 deletions.
5 changes: 0 additions & 5 deletions src/lxc/lxc-device
Expand Up @@ -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")
Expand Down
4 changes: 0 additions & 4 deletions src/lxc/lxc-ls
Expand Up @@ -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
Expand Down
4 changes: 0 additions & 4 deletions src/lxc/lxc-start-ephemeral.in
Expand Up @@ -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
Expand Down
3 changes: 0 additions & 3 deletions src/python-lxc/examples/api_test.py
Expand Up @@ -23,9 +23,6 @@
# USA
#

import warnings
warnings.filterwarnings("ignore", "The python-lxc API isn't yet stable")

import lxc
import uuid
import sys
Expand Down
3 changes: 0 additions & 3 deletions src/python-lxc/examples/pyconsole-vte.py
Expand Up @@ -24,9 +24,6 @@
# USA
#

import warnings
warnings.filterwarnings("ignore", "The python-lxc API isn't yet stable")

import gtk
import vte
import lxc
Expand Down
3 changes: 0 additions & 3 deletions src/python-lxc/examples/pyconsole.py
Expand Up @@ -24,9 +24,6 @@
# USA
#

import warnings
warnings.filterwarnings("ignore", "The python-lxc API isn't yet stable")

import lxc
import sys
import time
Expand Down
5 changes: 0 additions & 5 deletions src/python-lxc/lxc/__init__.py
Expand Up @@ -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()
Expand Down

0 comments on commit c756a6e

Please sign in to comment.