RDFLib/rdflib — Issue #71: hashlib warning importing sqlite
Author: gjhiggins
Created: 2012-02-20 08:31:58+00:00
State: closed

coryd...@gmail.com, 2009-07-14T18:31:43.000Z

What steps will reproduce the problem?

Run this code:

from rdflib import plugin
from rdflib.store import Store
plugin.get('SQLite', Store)

What is the expected output? What do you see instead?
Expected *no* output.

Instead I see
/usr/local/lib/python2.6/dist-packages/rdflib-2.4.2_cdd1-py2.6-linux-x86_64.egg/rdflib/store/SQLite.py:11:
DeprecationWarning: the sha module is deprecated; use the hashlib module
instead
import sha,re,os

If pre-python2.5-compatibility is desired, it's very easy to write a
wrapper for it keep compat and eliminate the warning. (Twisted currently
has one in twisted.python.hashlib.)

Comment 1 by eik...@gmail.com

Comment 2 by gromgull
Fixed in r1758