walidazizi / rdflib

Automatically exported from code.google.com/p/rdflib
Other
0 stars 0 forks source link

hashlib warning importing sqlite #75

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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.)

Original issue reported on code.google.com by coryd...@gmail.com on 14 Jul 2009 at 6:31

GoogleCodeExporter commented 8 years ago

Original comment by eik...@gmail.com on 1 Feb 2010 at 7:50

GoogleCodeExporter commented 8 years ago
Fixed in r1758

Original comment by gromgull on 2 Feb 2010 at 10:17