Modify ↓
Ticket #840 (closed task: fixed)
Use hashlib instead of md5 Module (rpmtools.py)
Reported by: | [email protected]… | Owned by: | desai |
---|---|---|---|
Priority: | trivial | Milestone: | Bcfg2 1.1.0 Release |
Component: | bcfg2-client | Version: | 1.0 |
Keywords: | md5 hashlib | Cc: |
Description
The md5 module from the python stdard library is deprecated since version 2.5. See warning below (bcfg2 -v -n):
/usr/local/lib64/python2.6/site-packages/Bcfg2/Client/Tools/rpmtools.py:24: DeprecationWarning?: the md5 module is deprecated; use hashlib instead
import md5
In case bcfg2 requires python 2.5 for installation:
See attachment for a very simple patch created against the 1.0.1 release (sorry, I don't have a svn copy). I'm not very familiar with the bcfg2 code but imho the md5 module is used only one time in the rpmtools.py file.
Attachments
Change History
comment:1 Changed 13 years ago by solj
- Status changed from new to closed
- Resolution set to fixed
- Milestone changed from Bcfg2 1.0.2 Release to Bcfg2 1.1.0 Release
Added in [618425388b594baea6c40f6b6fbac60eddc6efde] (SVN r5710). Thanks for the patch.
Note: See
TracTickets for help on using
tickets.