Skip to content

Commit

Permalink
refactored md5 code to make it easier to read
Browse files Browse the repository at this point in the history
  • Loading branch information
paulhammond committed Sep 16, 2004
1 parent 23a0bf9 commit 784023e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions webkit2png
Expand Up @@ -51,9 +51,7 @@ class WebkitLoad (NSObject, WebKit.protocols.WebFrameLoadDelegate):
except ImportError:
print "--md5 requires python md5 library"
NSApplication.sharedApplication().terminate_(None)
md5obj = md5.md5()
md5obj.update(URL)
filename = md5obj.hexdigest()
filename = md5.new(URL).hexdigest()
else:
import re
filename = re.sub('\W','',URL);
Expand Down

0 comments on commit 784023e

Please sign in to comment.