Gentoo Archives: gentoo-commits

From: "Patrick Lauer (patrick)" <patrick@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-tex/rubber/files: rubber-python2.6.patch
Date: Thu, 10 Sep 2009 16:55:14
Message-Id: E1MlmvQ-0000gP-Ru@stork.gentoo.org
1 patrick 09/09/10 16:55:12
2
3 Added: rubber-python2.6.patch
4 Log:
5 Small python fix to supress deprecation warning. Fixes #281911. Thanks to Marco Leogrande
6 (Portage version: 2.2_rc40/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.1 dev-tex/rubber/files/rubber-python2.6.patch
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-tex/rubber/files/rubber-python2.6.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-tex/rubber/files/rubber-python2.6.patch?rev=1.1&content-type=text/plain
13
14 Index: rubber-python2.6.patch
15 ===================================================================
16 --- src/util.py.orig 2006-03-25 03:43:38.000000000 -0700
17 +++ src/util.py 2009-03-16 18:06:39.075677561 -0600
18 @@ -5,7 +5,7 @@
19 by the modules for various tasks.
20 """
21
22 -import md5
23 +import hashlib
24 import os, stat, time
25 import imp
26 import re, string
27 @@ -19,7 +19,7 @@
28 """
29 Compute the MD5 sum of a given file.
30 """
31 - m = md5.new()
32 + m = hashlib.md5()
33 file = open(fname)
34 for line in file.readlines():
35 m.update(line)