Skip to content

Commit

Permalink
python-lxc: minor fixes to __init__.py
Browse files Browse the repository at this point in the history
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 <stgraber@ubuntu.com>
  • Loading branch information
stgraber committed May 6, 2014
1 parent 5b28d06 commit 3c597ce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/python-lxc/lxc/__init__.py
@@ -1,4 +1,5 @@
#
# -*- coding: utf-8 -*-
# python-lxc: Python bindings for LXC
#
# (C) Copyright Canonical Ltd. 2012
Expand Down Expand Up @@ -32,7 +33,7 @@
version = _lxc.get_version()


class ContainerNetwork():
class ContainerNetwork(object):
props = {}

def __init__(self, container, index):
Expand Down

0 comments on commit 3c597ce

Please sign in to comment.