Loading ...
Sorry, an error occurred while loading the content.

Re: [Cheetahtemplate-discuss] [PATCH] Stop annoying "DeprecationWarning; the md5 ..." messages

Expand Messages
  • Satoru SATOH
    Hi, It seems the mail was blocked and not reached to the list. So I sent this again. Could you please someone take a look at it? The patch is also available
    Message 1 of 2 , Mar 13, 2009
    • 0 Attachment
      Hi,

      It seems the mail was blocked and not reached to the list.
      So I sent this again.

      Could you please someone take a look at it?
      The patch is also available from Red Hat Bugzilla #480945:

      https://bugzilla.redhat.com/show_bug.cgi?id=480945
      (patch itself: https://bugzilla.redhat.com/attachment.cgi?id=330020)


      Thanks,
      Satoru SATOH

      2009/1/27 Satoru SATOH <satoru.satoh@...>:
      > Hi,
      >
      > I found Cheetah/CacheRegion.py uses old md5 module deprecated in
      > recent python versions (> 2.5?).
      > Thus, "DeprecationWarning: the md5 module is deprecated; use hashlib
      > instead" messages are out.
      >
      > Here is an example log of cobbler which uses Cheetah internally.
      >
      > root@localhost site-packages]# cobbler sync
      > /usr/lib/python2.6/site-packages/Cheetah/CacheRegion.py:30:
      > DeprecationWarning: the md5 module is deprecated; use hashlib instead
      >  import md5
      > /usr/lib/python2.6/site-packages/Cheetah/CacheRegion.py:30:
      > DeprecationWarning: the md5 module is deprecated; use hashlib instead
      >  import md5
      > (snip)
      >
      >  OS: Fedora rawhide
      >  Python: python-2.6-4.fc11.i386
      > Cheetah: python-cheetah-2.0.1-4.fc11.i386 (I confirmed same issue
      > remains in cvs HEAD also.)
      >
      >
      > I attached an experimental patch fixing this issue.
      >
      > I guess it works for older python versions but not tested.
      > I confirmed it works for me at least.
      >
      > Thanks,
      > Satoru SATOH

      ------------------------------------------------------------------------------
      Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
      powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
      easily build your RIAs with Flex Builder, the Eclipse(TM)based development
      software that enables intelligent coding and step-through debugging.
      Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
      _______________________________________________
      Cheetahtemplate-discuss mailing list
      Cheetahtemplate-discuss@...
      https://lists.sourceforge.net/lists/listinfo/cheetahtemplate-discuss
    • R. Tyler Ballance
      ... The patch looks fine and works correctly (i.e. tests are passing) on both Python 2.6 and Python 2.5.1. I ve applied this patch to the next branch of my
      Message 2 of 2 , Mar 15, 2009
      • 0 Attachment
        On Fri, Mar 13, 2009 at 11:06:57PM +0900, Satoru SATOH wrote:
        > Hi,
        >
        > It seems the mail was blocked and not reached to the list.
        > So I sent this again.
        >
        > Could you please someone take a look at it?
        > The patch is also available from Red Hat Bugzilla #480945:
        >
        > https://bugzilla.redhat.com/show_bug.cgi?id=480945
        > (patch itself: https://bugzilla.redhat.com/attachment.cgi?id=330020)

        The patch looks fine and works correctly (i.e. tests are passing) on
        both Python 2.6 and Python 2.5.1.

        I've applied this patch to the "next" branch of my Git repository
        (http://github.com/rtyler/cheetah/tree/next) and I will be including it
        in the Cheetah CE 2.1.0 release I'm tidying up right now.

        Cheers

        > 2009/1/27 Satoru SATOH <satoru.satoh@...>:
        > > Hi,
        > >
        > > I found Cheetah/CacheRegion.py uses old md5 module deprecated in
        > > recent python versions (> 2.5?).
        > > Thus, "DeprecationWarning: the md5 module is deprecated; use hashlib
        > > instead" messages are out.
        > >
        > > Here is an example log of cobbler which uses Cheetah internally.
        > >
        > > root@localhost site-packages]# cobbler sync
        > > /usr/lib/python2.6/site-packages/Cheetah/CacheRegion.py:30:
        > > DeprecationWarning: the md5 module is deprecated; use hashlib instead
        > > ?import md5
        > > /usr/lib/python2.6/site-packages/Cheetah/CacheRegion.py:30:
        > > DeprecationWarning: the md5 module is deprecated; use hashlib instead
        > > ?import md5
        > > (snip)
        > >
        > > ?OS: Fedora rawhide
        > > ?Python: python-2.6-4.fc11.i386
        > > Cheetah: python-cheetah-2.0.1-4.fc11.i386 (I confirmed same issue
        > > remains in cvs HEAD also.)
        > >
        > >
        > > I attached an experimental patch fixing this issue.
        > >
        > > I guess it works for older python versions but not tested.
        > > I confirmed it works for me at least.
        > >
        > > Thanks,
        > > Satoru SATOH
        >
        > ------------------------------------------------------------------------------
        > Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
        > powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
        > easily build your RIAs with Flex Builder, the Eclipse(TM)based development
        > software that enables intelligent coding and step-through debugging.
        > Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
        > _______________________________________________
        > Cheetahtemplate-discuss mailing list
        > Cheetahtemplate-discuss@...
        > https://lists.sourceforge.net/lists/listinfo/cheetahtemplate-discuss

        --
        -R. Tyler Ballance
        Slide, Inc.
      Your message has been successfully submitted and would be delivered to recipients shortly.