From: Stéphane Graber Date: Tue, 6 May 2014 03:34:04 +0000 (-0500) Subject: python-lxc: minor fixes to __init__.py X-Git-Tag: lxc-1.1.0.alpha1~116 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3c597cee885b7c6de5be9aff98b3f5034608fbf9;p=thirdparty%2Flxc.git python-lxc: minor fixes to __init__.py 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 --- 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):