[Python-modules-commits] [python-django-tagging] 06/15: Remove the fix_calc_tag_weight patch

Christopher Baines cbaines-guest at moszumanska.debian.org
Wed May 11 11:05:28 UTC 2016


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

cbaines-guest pushed a commit to branch master
in repository python-django-tagging.

commit 8c534a2b5afa825f8f45727e7fb3bfd1ccc335b4
Author: Christopher Baines <mail at cbaines.net>
Date:   Wed May 11 10:46:45 2016 +0100

    Remove the fix_calc_tag_weight patch
    
    This has been merged upstream.
---
 debian/patches/fix_calc_tag_weight | 29 -----------------------------
 1 file changed, 29 deletions(-)

diff --git a/debian/patches/fix_calc_tag_weight b/debian/patches/fix_calc_tag_weight
deleted file mode 100644
index b7def19..0000000
--- a/debian/patches/fix_calc_tag_weight
+++ /dev/null
@@ -1,29 +0,0 @@
-From e54ad0924908aec2a7970c957551787875317b2b Mon Sep 17 00:00:00 2001
-From: SVN-Git Migration <python-modules-team at lists.alioth.debian.org>
-Date: Thu, 8 Oct 2015 11:51:53 -0700
-Subject: Fix tag_weight when using logarithmic distribution
-
- When logarithmic distribution is used _calculate_tag_weight may
- return weight greater than maximum threshold. Because of this the attribute
- font_size of the most frequently used tag may be left unset.
-Upstream: http://code.google.com/p/django-tagging/issues/detail?id=91
-Debian: #525770
-
-Patch-Name: fix_calc_tag_weight
----
- tagging/utils.py | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/tagging/utils.py b/tagging/utils.py
-index e89bab0..759e8d8 100644
---- a/tagging/utils.py
-+++ b/tagging/utils.py
-@@ -232,7 +232,7 @@ def _calculate_tag_weight(weight, max_weight, distribution):
-     if distribution == LINEAR or max_weight == 1:
-         return weight
-     elif distribution == LOGARITHMIC:
--        return math.log(weight) * max_weight / math.log(max_weight)
-+        return min((max_weight, math.log(weight) * max_weight / math.log(max_weight)))
-     raise ValueError(_('Invalid distribution algorithm specified: %s.') % distribution)
- 
- def calculate_cloud(tags, steps=4, distribution=LOGARITHMIC):

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



More information about the Python-modules-commits mailing list