[lxc-devel] [pylxd/master] Fix super() issue in container.py - breaks py27

ajkavanagh on Github lxc-bot at linuxcontainers.org
Wed Aug 29 09:08:58 UTC 2018


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 364 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20180829/60d3998e/attachment.bin>
-------------- next part --------------
From 7e710aada88b360cd9e8f5f03084df1c6c4c63ad Mon Sep 17 00:00:00 2001
From: Alex Kavanagh <alex at ajkavanagh.co.uk>
Date: Wed, 29 Aug 2018 10:06:59 +0100
Subject: [PATCH] Fix super() issue in container.py - breaks py27

Fix issue with recent commit breaking py27 code.

Fixes #327
---
 pylxd/models/container.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pylxd/models/container.py b/pylxd/models/container.py
index 3ba99fd..a985691 100644
--- a/pylxd/models/container.py
+++ b/pylxd/models/container.py
@@ -546,7 +546,7 @@ class _StdinWebsocket(WebSocketBaseClient):  # pragma: no cover
     def __init__(self, url, payload=None, **kwargs):
         self.encoding = kwargs.pop('encoding', None)
         self.payload = payload
-        super().__init__(url, **kwargs)
+        super(_StdinWebsocket, self).__init__(url, **kwargs)
 
     def _smart_encode(self, msg):
         if type(msg) == six.text_type and self.encoding:


More information about the lxc-devel mailing list