Commit 3c597cee by Stéphane Graber

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: 's avatarStéphane Graber <stgraber@ubuntu.com>
parent 5b28d063
# #
# -*- coding: utf-8 -*-
# python-lxc: Python bindings for LXC # python-lxc: Python bindings for LXC
# #
# (C) Copyright Canonical Ltd. 2012 # (C) Copyright Canonical Ltd. 2012
...@@ -32,7 +33,7 @@ get_global_config_item = _lxc.get_global_config_item ...@@ -32,7 +33,7 @@ get_global_config_item = _lxc.get_global_config_item
version = _lxc.get_version() version = _lxc.get_version()
class ContainerNetwork(): class ContainerNetwork(object):
props = {} props = {}
def __init__(self, container, index): def __init__(self, container, index):
......
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