[Python-modules-commits] [vine] 01/03: Reproducible build

Christopher Stuart Hoskin mans0954 at moszumanska.debian.org
Mon May 29 19:15:17 UTC 2017


This is an automated email from the git hooks/post-receive script.

mans0954 pushed a commit to branch master
in repository vine.

commit 00aa09b14a812d1699914f6c79ebfae6ae7019b6
Author: Christopher Hoskin <mans0954 at debian.org>
Date:   Mon May 29 19:08:19 2017 +0100

    Reproducible build
    
    Description: Make the build reproducible
    Author: Chris Lamb <lamby at debian.org>
    Last-Update: 2017-03-28
    Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=858926
    Forwarded: https://github.com/celery/vine/pull/12
---
 vine/five.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/vine/five.py b/vine/five.py
index 2d87a41..e767859 100644
--- a/vine/five.py
+++ b/vine/five.py
@@ -236,7 +236,7 @@ else:
     exec_("""def reraise(tp, value, tb=None): raise tp, value, tb""")
 
 
-def with_metaclass(Type, skip_attrs={'__dict__', '__weakref__'}):
+def with_metaclass(Type, skip_attrs=None):
     """Class decorator to set metaclass.
 
     Works with both Python 2 and Python 3 and it does not add
@@ -244,6 +244,8 @@ def with_metaclass(Type, skip_attrs={'__dict__', '__weakref__'}):
     (that is -- it copies the original class instead of using inheritance).
 
     """
+    if skip_attrs is None:
+        skip_attrs = {'__dict__', '__weakref__'}
     def _clone_with_metaclass(Class):
         attrs = {key: value for key, value in items(vars(Class))
                  if key not in skip_attrs}

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/vine.git



More information about the Python-modules-commits mailing list