Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 165390 Details for
Bug 237624
app-portage/etc-proposals-1.4.2 deprecation warnings in python 2.6 (patch included)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
etc-proposals-1.4.2-py26-deprecation.patch
etc-proposals-1.4.2-py26-deprecation.patch (text/plain), 1.30 KB, created by
Mike Auty (RETIRED)
on 2008-09-14 12:29:59 UTC
(
hide
)
Description:
etc-proposals-1.4.2-py26-deprecation.patch
Filename:
MIME Type:
Creator:
Mike Auty (RETIRED)
Created:
2008-09-14 12:29:59 UTC
Size:
1.30 KB
patch
obsolete
>diff --git a/src/etcproposals_lib.py b/src/etcproposals_lib.py >index d2e38cb..db99214 100644 >--- a/src/etcproposals_lib.py >+++ b/src/etcproposals_lib.py >@@ -9,7 +9,7 @@ __author__ = 'Björn Michaelsen' > __version__ = '1.4.2' > __date__ = '2008-01-08' > >-import ConfigParser, anydbm, shelve, difflib, os, os.path, re, shutil, md5 >+import ConfigParser, anydbm, shelve, difflib, os, os.path, re, shutil, hashlib > from etcproposals.portage_stubs import PortageInterface > > STATEFILE = '/var/state/etcproposals.state' >@@ -296,7 +296,7 @@ class EtcProposalConfigFile(object): > > def md5hexdigest(self): > "calculates the md5sum of the file in the fs" >- return md5.md5(open(self.path).read()).hexdigest() >+ return hashlib.md5(open(self.path).read()).hexdigest() > > def is_unmodified(self): > "True, if the file in the fs has the same md5 as recorded" >diff --git a/src/portage_stubs.py b/src/portage_stubs.py >index 9cf2437..c6d73a1 100644 >--- a/src/portage_stubs.py >+++ b/src/portage_stubs.py >@@ -4,7 +4,7 @@ > # based on gentoo portage 2.1.1, Copyright 1998-2007 Gentoo Foundation > # Distributed under the terms of the GNU General Public License v2 > >-import re, string, os, md5 >+import re, string, os > from etcproposals.etcproposals_tools import get_command_output_iterator > > # portage constants
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 237624
: 165390