28 lines
736 B
Diff
28 lines
736 B
Diff
From 482e4c3936a9ba84b3bfed797520ff3e8a525f9c Mon Sep 17 00:00:00 2001
|
|
From: Vratislav Podzimek <vpodzime@redhat.com>
|
|
Date: Fri, 11 Mar 2016 16:01:20 +0100
|
|
Subject: [PATCH] Do not try to delete the C struct twice
|
|
|
|
The default destructor takes care about calling the C struct's __del__
|
|
implicitly.
|
|
|
|
Signed-off-by: Vratislav Podzimek <vpodzime@redhat.com>
|
|
---
|
|
src/python/bytesize.py | 3 ---
|
|
1 file changed, 3 deletions(-)
|
|
|
|
diff --git a/src/python/bytesize.py b/src/python/bytesize.py
|
|
index 3a32b65..21b2a1e 100644
|
|
--- a/src/python/bytesize.py
|
|
+++ b/src/python/bytesize.py
|
|
@@ -557,6 +557,3 @@ class Size(object):
|
|
|
|
def __hash__(self):
|
|
return self.get_bytes()
|
|
-
|
|
- def __del__(self):
|
|
- del(self._c_size)
|
|
--
|
|
2.5.0
|
|
|