Skip to content

Commit

Permalink
Import sha256 from hashlib for Python 3 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
jlstevens committed Feb 25, 2015
1 parent eb5f43c commit 3559727
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions holoviews/ipython/magics.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import string
import time
import os
import sha
from hashlib import sha256
try:
from IPython.core.magic import Magics, magics_class, cell_magic, line_magic, line_cell_magic
from IPython.core.pylabtools import print_figure
Expand Down Expand Up @@ -327,7 +327,7 @@ def _save_filename(cls, fmt):
@classmethod
def _digest(cls, data):
if cls._generate_SHA:
hashfn = sha.new()
hashfn = sha256()
hashfn.update(data)
cls._SHA = hashfn.hexdigest()
return True
Expand Down

0 comments on commit 3559727

Please sign in to comment.