#92 DeprecationWarning with python2.6

open
nobody
None
5
2009-04-27
2009-04-27
Hew McLachlan
No

From https://bugs.launchpad.net/bugs/339844

/usr/share/games/fretsonfire/game/Song.py:31: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
import sha

Discussion

  • the following patch should fix it:

    Index: src/Song.py

    --- src/Song.py (Revision 182)
    +++ src/Song.py (Arbeitskopie)
    @@ -28,7 +28,7 @@
    import re
    import shutil
    import Config
    -import sha
    +import hashlib
    import binascii
    import Cerealizer
    import urllib