[lxc-devel] [pylxd/master] cleanup: remove pylxd/mixin.py
dnegreira on Github
lxc-bot at linuxcontainers.org
Sun Dec 17 00:01:51 UTC 2017
A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 424 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20171217/dc49ee0c/attachment.bin>
-------------- next part --------------
From 3bf14311a8cf14200077b9f83eea38e48a6cd532 Mon Sep 17 00:00:00 2001
From: David Negreira <david.negreira at emesa.nl>
Date: Sun, 17 Dec 2017 00:58:50 +0100
Subject: [PATCH] cleanup: marshall already defined on pylxd/models/_model.py,
this class/method is not referenced by anything in the code
---
pylxd/mixin.py | 24 ------------------------
1 file changed, 24 deletions(-)
delete mode 100644 pylxd/mixin.py
diff --git a/pylxd/mixin.py b/pylxd/mixin.py
deleted file mode 100644
index 38021af..0000000
--- a/pylxd/mixin.py
+++ /dev/null
@@ -1,24 +0,0 @@
-# Copyright (c) 2016 Canonical Ltd
-#
-# Licensed under the Apache License, Version 2.0 (the "License"); you may
-# not use this file except in compliance with the License. You may obtain
-# a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
-# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
-# License for the specific language governing permissions and limitations
-# under the License.
-
-
-class Marshallable(object):
-
- def marshall(self):
- marshalled = {}
- for name in self.__slots__:
- if name.startswith('_'):
- continue
- marshalled[name] = getattr(self, name)
- return marshalled
More information about the lxc-devel
mailing list