Skip to content
This repository has been archived by the owner on Jul 24, 2018. It is now read-only.

Commit

Permalink
Add spaces for readability.
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphbean committed Feb 21, 2014
1 parent 248391f commit 53b962a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions summershum/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,12 @@ def walk_directory(directory):

for filename in filenames:
file_path = os.path.join(root, filename)

# We skip the symlink, should we follow them instead?
if os.path.islink(file_path):
log.warning("File %r is a link - skipping", file_path)
continue

with open(file_path) as stream:
contents = stream.read()
sha256sum = hashlib.sha256(contents).hexdigest()
Expand Down

0 comments on commit 53b962a

Please sign in to comment.