From 9dac0c291b7db04d70c9186a73a3d7a9156eb5cb Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Graber?= Date: Mon, 5 May 2014 22:34:04 -0500 Subject: [PATCH] python-lxc: minor fixes to __init__.py MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Set a base class for the network object and set the encoding in the header. Neither of those changes are required for python3 but they do make it easier for anyone trying to make a python2 binding. Signed-off-by: Stéphane Graber --- src/python-lxc/lxc/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/python-lxc/lxc/__init__.py b/src/python-lxc/lxc/__init__.py index d2330626a..45d139d71 100644 --- a/src/python-lxc/lxc/__init__.py +++ b/src/python-lxc/lxc/__init__.py @@ -1,4 +1,5 @@ # +# -*- coding: utf-8 -*- # python-lxc: Python bindings for LXC # # (C) Copyright Canonical Ltd. 2012 @@ -32,7 +33,7 @@ get_global_config_item = _lxc.get_global_config_item version = _lxc.get_version() -class ContainerNetwork(): +class ContainerNetwork(object): props = {} def __init__(self, container, index): -- 2.47.2