]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
python-lxc: minor fixes to __init__.py
authorStéphane Graber <stgraber@ubuntu.com>
Tue, 6 May 2014 03:34:04 +0000 (22:34 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Tue, 6 May 2014 03:35:52 +0000 (22:35 -0500)
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>
src/python-lxc/lxc/__init__.py

index d2330626aff27414abfaa57c1895347510aec4f0..45d139d71e49331ad544244126a1f773124fa58f 100644 (file)
@@ -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):