Modify

Ticket #949 (closed defect: worksforme)

Opened 12 years ago

Last modified 12 years ago

md5 function depricated under python 2.6.2

Reported by: https://www.google.com/accounts/o8/id?id=AItOawmQmn0B7szSWU05XNIWqq49So7cIisAOpI Owned by: desai
Priority: major Milestone: Bcfg2 1.2.0 Release
Component: bcfg2-client Version: 1.0
Keywords: Cc:

Description

For testing purposes we needed to get an RHEL6 beta server running, which uses python 2.6.2 stock. when running bcfg2 client on the box against our server we get the following message.

/usr/lib/python2.6/site-packages/Bcfg2/Client/Tools/rpmtools.py:24: DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import md5

you may need to look at putting in some logic that looks at python version and uses the proper module accordingly.

Attachments

Change History

comment:1 Changed 12 years ago by solj

  • Status changed from new to closed
  • Resolution set to worksforme

This is already fixed in 1.1.0 with the following code snippet:

if sys.version_info >= (2, 5):
    import hashlib
    py24compat = False
else:
    # FIXME: Remove when client python dep is 2.5 or greater
    py24compat = True
    import md5

WARNING! You need to establish a session before you can create or edit tickets. Otherwise the ticket will get treated as spam.

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.