Skip to content
This repository has been archived by the owner on Nov 28, 2023. It is now read-only.

Commit

Permalink
modified test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
BlBana committed Aug 14, 2017
1 parent 3c66ebc commit d22acd7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cobra/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ def md5(content):
:param content:
:return:
"""
content = content.encode('utf8')
return hashlib.md5(content).hexdigest()


Expand Down Expand Up @@ -243,6 +244,7 @@ def path_to_short(path, max_length=36):
return path
paths = path.split('/')
paths = filter(None, paths)
paths = list(paths)
tmp_path = ''
for i in range(0, len(paths)):
logger.debug((i, str(paths[i]), str(paths[len(paths) - i - 1])))
Expand Down

0 comments on commit d22acd7

Please sign in to comment.